Citizens of the Imperium

Citizens of the Imperium (http://www.travellerrpg.com/CotI/Discuss/index.php)
-   Software Solutions (http://www.travellerrpg.com/CotI/Discuss/forumdisplay.php?f=63)
-   -   Working on the PyMongo NPC tracker (http://www.travellerrpg.com/CotI/Discuss/showthread.php?t=38435)

Leitz November 4th, 2017 08:17 PM

Working on the PyMongo NPC tracker
 
"Work", in this instance, being slow. I'm getting into the web interface "select and update" cycle that usually confuses me.

If you have any PyMongo or Bottle-ish skills, feel free to offer suggestions. The repo is py_npc_web_db and I'm working on the "upsert_dragon" method as I figure it out.

Long term goal is more search options besides name, optional fields being updateable, and a config file so someone can use the code without having to hard code their own database info in it. Very short term is working on really understanding the update process.

I plan on using this for characters in my games and the stories I write. Always helps to not change a character's hair color or gender mid-story. :)

Leitz November 5th, 2017 08:04 AM

This morning's code push hit a goal I have been trying to reach for several years in a few different languages. I was able to select a database entry, modify it, and then loop back to check the selection.

Over the years I've gotten lost in that "loop back" bit; it is very nice to see the end of the trail. There are still lots of ways to improve the code but right now I am happy.


All times are GMT -4. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.