• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

Working on the PyMongo NPC tracker

Leitz

SOC-14 1K
Admin Award
Baron
"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. :)
 
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.
 
Back
Top