kopia lustrzana https://github.com/dgtlmoon/changedetection.io
UI - Fixing update for sort by "date created" or "#" in watch overview table ( #1775 )
rodzic
3b875e5a6a
commit
0aa2276afb
|
|
@ -778,15 +778,6 @@ class ChangeDetectionStore:
|
|||
continue
|
||||
return
|
||||
|
||||
# We don't know when the date_created was in the past until now, so just add an index number for now.
|
||||
def update_11(self):
|
||||
i = 0
|
||||
for uuid, watch in self.data['watching'].items():
|
||||
if not watch.get('date_created'):
|
||||
watch['date_created'] = i
|
||||
i+=1
|
||||
return
|
||||
|
||||
# Create tag objects and their references from existing tag text
|
||||
def update_12(self):
|
||||
i = 0
|
||||
|
|
@ -800,3 +791,11 @@ class ChangeDetectionStore:
|
|||
|
||||
self.data['watching'][uuid]['tags'] = tag_uuids
|
||||
|
||||
# #1775 - Update 11 did not update the records correctly when adding 'date_created' values for sorting
|
||||
def update_13(self):
|
||||
i = 0
|
||||
for uuid, watch in self.data['watching'].items():
|
||||
if not watch.get('date_created'):
|
||||
self.data['watching'][uuid]['date_created'] = i
|
||||
i+=1
|
||||
return
|
||||
Ładowanie…
Reference in New Issue