Merge pull request #102 from ThomasRubini/bulk_import_cleanup
This commit is contained in:
		
						commit
						e0ae64cba5
					
				
							
								
								
									
										65
									
								
								bulkData.yml
									
									
									
									
									
								
							
							
						
						
									
										65
									
								
								bulkData.yml
									
									
									
									
									
								
							| @ -1,65 +0,0 @@ | |||||||
| rooms: |  | ||||||
|   livingRoom: |  | ||||||
|     EN: "the living room" |  | ||||||
|     FR: "le salon" |  | ||||||
|   kitchen: |  | ||||||
|     EN: "the kitchen" |  | ||||||
|     FR: "La couisine >:(" |  | ||||||
| 
 |  | ||||||
| questions: |  | ||||||
|   where: |  | ||||||
|     text: |  | ||||||
|       - FR: "Ou étais tu ?" |  | ||||||
|       - FR: "Where were you ?" |  | ||||||
|   withwho: |  | ||||||
|     text: |  | ||||||
|       - FR: "Avec qui étais tu ?" |  | ||||||
|       - EN: "Who were you with ?" |  | ||||||
| 
 |  | ||||||
| traits: |  | ||||||
|   happy: |  | ||||||
|     name: |  | ||||||
|       FR: "Heureux" |  | ||||||
|       EN: "Happy" |  | ||||||
|     description: |  | ||||||
|       FR: "Une description" |  | ||||||
|       EN: "Some description" |  | ||||||
|   sad: |  | ||||||
|     name: |  | ||||||
|       FR: "Malheureux" |  | ||||||
|       EN: "sad" |  | ||||||
|     description: |  | ||||||
|       FR: "Une description 2" |  | ||||||
|       EN: "Some description 2" |  | ||||||
| 
 |  | ||||||
| npc: |  | ||||||
|   diva: |  | ||||||
|     name: |  | ||||||
|       FR: "La diva" |  | ||||||
|       EN: "The diva" |  | ||||||
|     reactions: |  | ||||||
|       neutral: |  | ||||||
|         img: "local/files/diva/neutral.png" |  | ||||||
|       happy: |  | ||||||
|         img: "local/files/diva/happy.png" |  | ||||||
|       sad: |  | ||||||
|         img: "local/files/diva/sad.png" |  | ||||||
|     answers: |  | ||||||
|       withwho: |  | ||||||
|         - EN: "I was in {ROOM}" |  | ||||||
|         - FR: "J'étais dans {ROOM}" |  | ||||||
|   agent: |  | ||||||
|     name: |  | ||||||
|       FR: "L'agent" |  | ||||||
|       EN: "The agent" |  | ||||||
|     reactions: |  | ||||||
|       neutral: |  | ||||||
|         img: "local/files/agent/neutral.png" |  | ||||||
|       sad: |  | ||||||
|         img: "local/files/agent/happy/1.png" |  | ||||||
| 
 |  | ||||||
|     answers: |  | ||||||
|       where: |  | ||||||
|         - EN: "I was in {ROOM}" |  | ||||||
|         - FR: "J'étais dans la salle {ROOM}" |  | ||||||
|         - EN: "{ROOM} reminds me of my travls" |  | ||||||
							
								
								
									
										16
									
								
								import.py
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								import.py
									
									
									
									
									
								
							| @ -1,16 +0,0 @@ | |||||||
| # Load .env file |  | ||||||
| from dotenv import load_dotenv |  | ||||||
| load_dotenv() |  | ||||||
| 
 |  | ||||||
| import argparse |  | ||||||
| 
 |  | ||||||
| from sqlalchemy.orm import sessionmaker |  | ||||||
| 
 |  | ||||||
| from truthinquiry.ext.database.sa import engine |  | ||||||
| from truthinquiry.ext.database.models import * |  | ||||||
| 
 |  | ||||||
| Session = sessionmaker(bind=engine) |  | ||||||
| session = Session() |  | ||||||
| 
 |  | ||||||
| results = session.query(Npc).all() |  | ||||||
| print(results) |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user