Created
November 16, 2019 16:25
-
-
Save jbeezley/8e74f1bd76d595b09684df7b7e7f0fec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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