Skip to content

Instantly share code, notes, and snippets.

@jbeezley
Created November 16, 2019 16:25
Show Gist options
  • Save jbeezley/8e74f1bd76d595b09684df7b7e7f0fec to your computer and use it in GitHub Desktop.
Save jbeezley/8e74f1bd76d595b09684df7b7e7f0fec to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import json
from stumpf.app import create_app
from stumpf.diva_fact_schemas import ActivityStatus
def main():
map = {}
app = create_app({})
with app.app_context():
for status in ActivityStatus.query:
uuid = status.grozper_activity_id
id = uuid.int >> 65
map[id] = str(uuid)
print(json.dumps(map))
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment