Skip to content

Commit

Permalink
directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarasin committed Apr 19, 2016
1 parent 37e2642 commit 0692fdb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.idea
*.pyc
sample.png
#thumbnails/*
#pictures/*

2 changes: 1 addition & 1 deletion cc_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class cc_http(object):
server_url = 'http://azenguard.com/CatChat/'
username='james'
password='computer'
userid=1
userid=0

def md5(self, fname):
hash_md5 = hashlib.md5()
Expand Down
2 changes: 1 addition & 1 deletion cc_pictures.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_pixbuf_thumbnail_from_hash(cc_http_connection, hash):
cached_file_name = "thumbnails/" + hash

if os.path.isfile(cached_file_name) == False:
if download_thumbnail_from_hash(cc_http_connection, hash) == True:
if download_thumbnail_from_hash(cc_http_connection, hash):
picture = GdkPixbuf.Pixbuf.new_from_file(cached_file_name)
else:
picture = GdkPixbuf.Pixbuf.new_from_file("missing.png")
Expand Down
5 changes: 5 additions & 0 deletions pictures/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**
!.gitignore



3 changes: 3 additions & 0 deletions thumbnails/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**
!.gitignore

0 comments on commit 0692fdb

Please sign in to comment.