From 4a9f566d2d45c7634a4b4ee4ccde7a1a4afe528b Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 1 Nov 2019 20:33:06 +0000 Subject: added old graph link to wiki posts --- SmallYTChannelBotSubmissions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'SmallYTChannelBotSubmissions.py') diff --git a/SmallYTChannelBotSubmissions.py b/SmallYTChannelBotSubmissions.py index 9c75f6b..f74ea2e 100755 --- a/SmallYTChannelBotSubmissions.py +++ b/SmallYTChannelBotSubmissions.py @@ -110,7 +110,9 @@ def _update_tables(scores, data): λ = "∞" content += "\n/u/%s|%s|%i" % (line[0], λ, line[2]) - content += "\n\n##Statistics from %s:\n\n![](%%%%wikigraph%%%%)\n\nTotal λ in circulation|Useful advice given|Unique users\n:--|:--|:--\n%i|%i|%i" % (date, data[-1][1], data[-1][2], data[-1][3]) + content += "\n\n##Statistics from %s:\n\nIf you're looking at this through the wiki, not through the bot's profile, then" % (date) + content += "the most up-to-date graph will be shown below. To see the graph at this date, follow [this link.](%s)" % (imageurl) + content += "\n\n![](%%%%wikigraph%%%%)\n\nTotal λ in circulation|Useful advice given|Unique users\n:--|:--|:--\n%i|%i|%i" % (data[-1][1], data[-1][2], data[-1][3]) reddit.subreddit("u_SmallYTChannelBot").submit("/r/SmallYTChannel Statistics: %s" % date, url = imageurl).reply(content).mod.distinguish(sticky = True) -- cgit v1.2.3