Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AndrewVSutherland
GitHub Repository: AndrewVSutherland/lmfdb
Path: blob/main/scripts/reports/upload_helpers.py
1128 views
1
2
class inventory_data:
3
def init(self, database, collection, data, orphans):
4
self.database = database
5
self.collection = collection
6
self.data = data
7
self.orphans = orphans
8
9
def rename_key(self, previous, new):
10
try:
11
key_data = self.orphans[previous]
12
self.data[new] = key_data
13
except Exception:
14
pass
15
16
def get_outdated_keys(self):
17
return self.orphans.__keys__
18
19