diff options
| author | diogo464 <[email protected]> | 2025-07-24 11:12:04 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-07-24 11:12:04 +0100 |
| commit | 47b06ad0b6fa9c6e6a352ef7d6f25297ad3aaf72 (patch) | |
| tree | 252312da01b58b7081329598403281d0be217625 /extract-slug | |
| parent | e4103bd2027c88e0d44e39640cf884af022bc3a4 (diff) | |
added extract-slug
Diffstat (limited to 'extract-slug')
| -rwxr-xr-x | extract-slug | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extract-slug b/extract-slug new file mode 100755 index 000000000..255d25080 --- /dev/null +++ b/extract-slug | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | import os | ||
| 3 | import sys | ||
| 4 | |||
| 5 | for slug in sys.argv[1:]: | ||
| 6 | slug_path = os.path.join("events", slug, "slug") | ||
| 7 | if os.path.exists(slug_path): | ||
| 8 | continue | ||
| 9 | with open(slug_path, "w") as f: | ||
| 10 | f.write(slug) | ||
