Skip to content

Releases: djotaku/Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI

v1.3.1 Added collection names to User and Games Databases

22 Aug 22:59
f5e33a6
Compare
Choose a tag to compare
Merge pull request #57 from djotaku/collections

Collections

v1.3 Moved to MongoDB

21 Aug 18:08
Compare
Choose a tag to compare

There are two noticeable changes

MongoDB is now the datastore

I moved from writing JSON to disk to using MongoDB. I haven't had any pull requests or indicators that anyone is using this code but me, but if there are those of you out there who are, here's what you'll want to do:

  1. Setup MongoDB somewhere. The people who make MongoDB have a free tier of Atlas (their cloud server) that should be fine unless you're serving some massive community.
  2. Go to mongo_setup.py and change the part after the "@" sign to your connection string.
  3. Authorize your IP address to be able to access the database. (Atlas makes you do that, don't know about other installs of Mongo)
  4. First run convert_player_json_mongo_db.py to put your players into MongoDB. Since I haven't implemented anything other than Matrix, I just have it worry about Matrix usernames.
  5. Then run convert_game_json_mongo_db.py to put your games into MongoDB.

At this point you should be ready to rock and roll and from your user's perspectives nothing should be different than it was before (with one caveat).

Caveat: I have lost the sorting for the index page. I have an idea of maybe how I can get that back based on a MongoDB query. But that seems to be the only issue I've discovered so far.

A few new endpoints

I added the completed_games and total_games endpoints and current_games now returns only the games that are in progress.

What's Changed

Full Changelog: v1.1.8...v1.3

v1.1.8 Final Release before MongoDB requirement

20 Aug 15:42
Compare
Choose a tag to compare

After this release I'm moving to using MongoDB instead of JSON files written to disk. If you aren't interested in using Mongo, fork from here.

v1.1.7 Average Turn Time now Displayed

06 Aug 20:08
Compare
Choose a tag to compare
whoops, accidental circulate dependencies

v1.1.5 Fixed Bug on Ordering the Index.html

06 Aug 16:39
Compare
Choose a tag to compare

v1.1.4 Table on Index.html is now ordered from oldest to newest

06 Aug 16:11
94461f9
Compare
Choose a tag to compare

v1.1.1 Fixing Matrix Bug on Game Completion

26 Jul 23:20
Compare
Choose a tag to compare

Had a bug with the Matrix response when completing a game. Fixed it.

v1.1 Added A User-Facing Index.html

25 Jul 20:18
1d87c8d
Compare
Choose a tag to compare

Now if you've setup this server for capturing your webhooks, a page will come up listing all the games the server is currently tracking.

Also made a bunch of behind-the-scenes updates to make the code more modular and to make the responses all JSON for more consistency.

v0.2.3 Fixing my HTTP Verb in the bot

30 May 17:23
Compare
Choose a tag to compare
Wrong HTTP verb

Tried to call post on a delete. The bot should work now.

v0.2.2 Updating Dependencies

30 May 17:12
Compare
Choose a tag to compare
Updating dependencies