Skip to content

Instantly share code, notes, and snippets.

@relrod
Created December 9, 2014 18:26
Show Gist options
  • Save relrod/e8211c0425cf95d22f07 to your computer and use it in GitHub Desktop.
Save relrod/e8211c0425cf95d22f07 to your computer and use it in GitHub Desktop.
diff --git a/spins.fedoraproject.org/data/templates/master.html b/spins.fedoraproject.org/data/templates/master.html
index 105c92f..002ed72 100644
--- a/spins.fedoraproject.org/data/templates/master.html
+++ b/spins.fedoraproject.org/data/templates/master.html
@@ -150,7 +150,7 @@ class Torrents(object):
return random.randint(0, len(list)-1)
torrents = Torrents()
-release = '20'
+release = '21'
def formatsize(n, format='%0.2f'):
# this is awful.
@@ -169,7 +169,7 @@ for t in torrents.torrents:
if 'Live-' in name:
name = name.split('Live-')[1]
- name = name.rsplit('-', 2)[0]
+ name = name.rsplit('-', 2)[0].replace('_', '-')
if name not in spins:
spins[name] = {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment