Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jonholdsworth committed Nov 1, 2024
1 parent 44a1bd8 commit a23eadb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 7 additions & 2 deletions bin/find-orphaned-videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@
Gloss,
)

# Globals
GLOBAL_COLUMN_HEADINGS = ["Gloss ID", "Gloss", "Suggested Video key"] # Keep synced with other scripts
# Keep synced with other scripts
GLOSS_ID_COLUMN = "Gloss ID"
GLOSS_COLUMN = "Gloss"
GLOSS_VIDEO_COLUMN = "Suggested Video key"
GLOBAL_COLUMN_HEADINGS = [GLOSS_ID_COLUMN, GLOSS_COLUMN, GLOSS_VIDEO_COLUMN]

# Other globals
CSV_DELIMITER = ","
FAKEKEY_PREFIX = "this_is_not_a_key_"
DATABASE_URL = os.getenv("DATABASE_URL", "")
Expand Down
13 changes: 7 additions & 6 deletions bin/repair-orphaned-videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@
)
from signbank.video.models import GlossVideo

# Globals
GLOBAL_COLUMN_HEADINGS = [
"Gloss ID",
"Gloss",
"Suggested Video key",
] # Keep synced with other scripts
# Keep synced with other scripts
GLOSS_ID_COLUMN = "Gloss ID"
GLOSS_COLUMN = "Gloss"
GLOSS_VIDEO_COLUMN = "Suggested Video key"
GLOBAL_COLUMN_HEADINGS = [GLOSS_ID_COLUMN, GLOSS_COLUMN, GLOSS_VIDEO_COLUMN]

# Other globals
CSV_DELIMITER = ","
FAKEKEY_PREFIX = "this_is_not_a_key_"
DATABASE_URL = os.getenv("DATABASE_URL", "")
Expand Down

0 comments on commit a23eadb

Please sign in to comment.