-
-
Save andir/81247891fb47203278be94c9889f9db0 to your computer and use it in GitHub Desktop.
GitHub Events Nixpkgs
This file contains 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
from tracker.models import GitHubEvent | |
events = GitHubEvent.objects.filter(received_at__gt='2020-12-17 23:19:12.635721+00:00', received_at__lt='2020-12-19 20:53:00.0+00:00').all() | |
import json | |
fh = open('/tmp/events.json', "w") | |
events_json = [ { 'kind': event.kind, 'data': event.data, 'received_at': str(event.received_at) } for event in events ] | |
json.dump(events_json, fh) | |
fh.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment