Change to pull current CSS stylesheet and then reupload it

This commit is contained in:
root
2017-04-30 17:31:33 +00:00
parent 6094b88de0
commit 52b9c57e82
13 changed files with 19 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

+2 -1
View File
@@ -12,5 +12,6 @@ print(reddit.user.me())
sub = reddit.subreddit('cryptocurrency')
# print(sub.title)
ss = sub.stylesheet()
sstext = ss.stylesheet
sub.stylesheet.upload("ticker", "img/temp/ticker.png")
sub.stylesheet.update(stylesheettext)
sub.stylesheet.update(sstext)
+17
View File
@@ -0,0 +1,17 @@
import imggen
import praw
from userpw import *
tickerimg = imggen.imggen()
reddit = praw.Reddit(client_id=client_id, client_secret=client_secret,
username=username, password=password,
user_agent=user_agent)
print(reddit.user.me())
sub = reddit.subreddit('cryptocurrency')
# print(sub.title)
ss = sub.stylesheet()
print(ss.stylesheet)
# sub.stylesheet.upload("ticker", "img/temp/ticker.png")
# sub.stylesheet.update(stylesheettext)