Skip to content

Commit ac6a442

Browse files
committed
Add level 8 backup
[skip ci]
1 parent 134b8df commit ac6a442

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎scripts/gdrive_cache.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def get_folders_of_types_for_tag(tag: website.TagFile, include_folders: Collecti
120120
ret.append(sf)
121121
return ret
122122

123-
@backup_level(1, "lone published", "Non-av files in tags without a source")
124123
def find_unlinked_tag_content(
125124
include_folders: set[TagFolderTypes]={
126125
TagFolderTypes.PUBLIC,
@@ -155,6 +154,14 @@ def find_unlinked_tag_content(
155154
ret.extend(all_files)
156155
return ret
157156

157+
@backup_level(1, "lone published", "Non-av files in tags without a source")
158+
def first_priorities() -> list[dict]:
159+
return find_unlinked_tag_content()
160+
161+
@backup_level(8, "unread docs", "All non-av files in tag unread folders")
162+
def find_unread_doc_files() -> list[dict]:
163+
return find_unlinked_tag_content(include_folders={TagFolderTypes.UNREAD})
164+
158165
add_backup_level(10, "High", "All valuable items in need of backing up")
159166
add_backup_level(30, "Medium", "All items in active need of backing up")
160167

0 commit comments

Comments
 (0)