|
|
|
|
@ -28,6 +28,7 @@ class User: |
|
|
|
|
self.url = '' |
|
|
|
|
self.name = '' |
|
|
|
|
self.url_other_picture = '' |
|
|
|
|
self.reacting_friends = 0 |
|
|
|
|
|
|
|
|
|
def add_to_db(self): |
|
|
|
|
# Lägg till profilen till arrango |
|
|
|
|
@ -43,7 +44,8 @@ class User: |
|
|
|
|
"likes": self.url_likes, |
|
|
|
|
"about": self.url_about, |
|
|
|
|
"cover photos": self.url_coverphotos, |
|
|
|
|
"fetched": self.fetched |
|
|
|
|
"fetched": self.fetched, |
|
|
|
|
"reacting_friends": self.reacting_friends |
|
|
|
|
}, |
|
|
|
|
overwrite_mode="update", |
|
|
|
|
silent=True, |
|
|
|
|
@ -169,7 +171,7 @@ class Profile: |
|
|
|
|
def unused(self): |
|
|
|
|
""" Sätter user till False för valda profiler """ |
|
|
|
|
self.doc["in_use"] = False |
|
|
|
|
db.update_document(self.doc['_key'], silent=True) |
|
|
|
|
db.update_document(self.doc, silent=True) |
|
|
|
|
|
|
|
|
|
class Proxies: |
|
|
|
|
def __init__(self): |
|
|
|
|
|