[RssNotify] Shorter commit hash

This commit is contained in:
sfan5 2014-06-02 16:56:33 +02:00
parent fc8118b68e
commit bc245a4be5

View File

@ -75,7 +75,7 @@ def rsscheck(phenny, input):
except AttributeError: except AttributeError:
commiter = commiter_realname # This will only use the realname if the nickname couldn't be obtained commiter = commiter_realname # This will only use the realname if the nickname couldn't be obtained
reponame = url.replace("https://github.com/","").replace("/commits/master.atom","") reponame = url.replace("https://github.com/","").replace("/commits/master.atom","")
commit_hash = feed_entry.links[0].href.replace("https://github.com/" + reponame + "/commit/","")[:10] commit_hash = feed_entry.links[0].href.replace("https://github.com/" + reponame + "/commit/","")[:7]
commit_time = feed_entry.updated commit_time = feed_entry.updated
updcnt += 1 updcnt += 1
if rssnotify["dont_print_first_message"]: if rssnotify["dont_print_first_message"]: