mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 13:23:58 +00:00
format
This commit is contained in:
@@ -862,11 +862,11 @@ async def create_db_client(
|
||||
)
|
||||
else:
|
||||
raise Exception(f"Invalid database type: {db_type}")
|
||||
|
||||
|
||||
|
||||
async def get_next_version() -> int:
|
||||
"""Get next available version number"""
|
||||
db_client = await create_db_client()
|
||||
version = await db_client.get_largest_version()
|
||||
await db_client.cleanup()
|
||||
return version + 1
|
||||
return version + 1
|
||||
|
Reference in New Issue
Block a user