Permalink
Browse files

improve text for a new badge / card

  • Loading branch information...
1 parent 85d6e81 commit fab2c1688f151f26722cc390824233575912598b @tuulos tuulos committed Jan 7, 2013
Showing with 10 additions and 6 deletions.
  1. +10 −6 __main__.py
View
@@ -75,10 +75,14 @@ def popularity(repos):
Profiles().map(countries).show('map',
label='Visitors',
size=(12, 4))
-
-Title("Repos have {total} daily unique visitors in total over the last {window} days",
- text)
-
-Description("The most popular repository is *{popular[1]}* with {popular[0]} visitors.",
- text)
+if total in text:
+ Title("Repos have {total} daily unique visitors in total over the last "
+ "{window} days",
+ text)
+ Description("The most popular repository is *{popular[1]}* with "
+ "{popular[0]} visitors.",
+ text)
+else:
+ Title("First badge added!")
+ Description("It takes about an hour for the real data to start flowing in.")

0 comments on commit fab2c16

Please sign in to comment.