aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Carlson <bng44270@users.noreply.github.com>2016-02-23 12:59:22 -0500
committerAndy Carlson <bng44270@users.noreply.github.com>2016-02-23 12:59:22 -0500
commit0f3d12eeb2f6aff6f869dd8d6386e0823a11dd91 (patch)
treeeb6e858552df090030713f4bdf4de1cfb8d41bcd
parent437f8c6106184634f718ee5b14db5c029feb6966 (diff)
Created max recent gists
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index e7d3d9f..daa4645 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ import os
import sys
def GetRecentGithubUser(db):
- return [a["gituser"] for a in db.Select("gistrecent")]
+ return [a["gituser"] for a in db.Select("gistrecent")][0:5]
def ExistGitUser(db,gituser):
return [a["gituser"] for a in db.Select("gistrecent") if a["gituser"] == gituser]
@@ -73,4 +73,4 @@ def __exit():
def __ping():
return "ok"
-app.run("0.0.0.0",8080) \ No newline at end of file
+app.run("0.0.0.0",8080)