3
2
forked from Dniel97/artemis

dbutils: add command to show versions

This commit is contained in:
Hay1tsme 2023-06-24 13:14:40 -04:00
parent 3c385f505b
commit 858b101a36
2 changed files with 8 additions and 0 deletions

View File

@ -333,3 +333,8 @@ class Data:
if not failed:
self.base.set_schema_ver(latest_ver, game)
def show_versions(self) -> None:
all_game_versions = self.base.get_all_schema_vers()
for ver in all_game_versions:
self.logger.info(f"{ver['game']} -> v{ver['version']}")

View File

@ -85,4 +85,7 @@ if __name__ == "__main__":
elif args.action == "cleanup":
data.delete_hanging_users()
elif args.action == "version":
data.show_versions()
data.logger.info("Done")