Skip to content

Instantly share code, notes, and snippets.

View Cactiw's full-sized avatar

Knyazev Andrew Cactiw

View GitHub Profile
@Cactiw
Cactiw / sentry_backup_fix.py
Created December 17, 2022 21:47
This is quick fix for sentry generated backup.json file.
import json
FILENAME = "backup.json"
FILENAME_FIXED = "backup_fixed.json"
def restore():
with open(FILENAME, "r") as f:
lines = f.readlines()
lines = lines[lines.index('[\n'):]