1
0
mirror of synced 2024-11-28 07:50:48 +01:00

dbutils: add command to show versions

This commit is contained in:
Kevin Trocolli 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: if not failed:
self.base.set_schema_ver(latest_ver, game) 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": elif args.action == "cleanup":
data.delete_hanging_users() data.delete_hanging_users()
elif args.action == "version":
data.show_versions()
data.logger.info("Done") data.logger.info("Done")