Skip to content

Commit

Permalink
Store draft state before archiving video (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Badatos authored Feb 10, 2025
1 parent 6956d9d commit 19ada5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pod/video/management/commands/check_obsolete_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ def write_in_csv(self, vid: Video, arch_type: str) -> None:
"Source file",
"Description",
"Views",
"Draft"
]
if exists:
self.check_csv_header(file, fieldnames)
Expand Down Expand Up @@ -536,6 +537,7 @@ def write_in_csv(self, vid: Video, arch_type: str) -> None:
.replace("\n\n", "\n")
.replace("\n", "$newl$"),
"Views": vid.viewcount,
"Draft": vid.is_draft
}
)

Expand Down

0 comments on commit 19ada5c

Please sign in to comment.