add bson objectId

This commit is contained in:
Joe Kaufeld 2023-04-06 14:12:48 -04:00
parent c9dc7fb270
commit ec6d5fd2a2

View File

@ -48,6 +48,15 @@ def uuid4():
click.echo(uuid.uuid4())
@main.command()
def objectid():
"""Generate a random ObjectID."""
new_id = ''
for _ in range(24):
new_id += random.choice(string.ascii_lowercase[:6] + string.digits)
click.echo(new_id)
@main.command()
@click.argument("dice")
def roll(dice: str):
@ -120,7 +129,7 @@ def update_from_gitea():
if release_data["tag_name"] == src.__version__:
status.stop()
click.echo(
"Server version is the same as current version;" " nothing to update."
"Server version is the same as current version; nothing to update."
)
return
status.update("Updating...")