Commit 6a1d7980 authored by lixiaofang's avatar lixiaofang

add

parent dfe6a960
...@@ -24,11 +24,9 @@ auto_follow_url = "http://earth.igengmei.com/api/v1/follow" ...@@ -24,11 +24,9 @@ auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge" auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
def get_majia(): def get_majia():
try: try:
data = open("/srv/apps/physical/majia/majia_email.txt") data = open("/srv/apps/physical/injection/data_sync/majia_email.txt")
list = [] list = []
for i in data: for i in data:
list.append(i.strip('\n').strip(',')) list.append(i.strip('\n').strip(','))
...@@ -43,7 +41,7 @@ def get_majia(): ...@@ -43,7 +41,7 @@ def get_majia():
def get_cookies(user_id): def get_cookies(user_id):
try: try:
with open("/srv/apps/physical/majia/user_session.txt", 'r') as f: with open("/srv/apps/cybertron/user_session.txt", 'r') as f:
try: try:
data = f.readlines() data = f.readlines()
except: except:
...@@ -125,7 +123,7 @@ def time_conv(minutest): ...@@ -125,7 +123,7 @@ def time_conv(minutest):
def get_comments(): def get_comments():
try: try:
data = open("/srv/apps/physical/majia/guanshui.txt", "r") data = open("/srv/apps/physical/injection/data_sync/guanshui.txt", "r")
list_guanshui = [] list_guanshui = []
for i in data: for i in data:
list_guanshui.append(i) list_guanshui.append(i)
......
This diff is collapsed.
...@@ -26,7 +26,7 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge" ...@@ -26,7 +26,7 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
def get_majia(): def get_majia():
try: try:
data = open("/srv/apps/physical/majia/majia_email.txt") data = open("/srv/apps/cybertron/majia_email.txt")
list = [] list = []
for i in data: for i in data:
list.append(i.strip('\n').strip(',')) list.append(i.strip('\n').strip(','))
...@@ -41,7 +41,7 @@ def get_majia(): ...@@ -41,7 +41,7 @@ def get_majia():
def get_cookies(user_id): def get_cookies(user_id):
try: try:
with open("/srv/apps/physical/majia/user_session.txt", 'r') as f: with open("/srv/apps/cybertron/user_session.txt", 'r') as f:
try: try:
data = f.readlines() data = f.readlines()
except: except:
...@@ -123,7 +123,7 @@ def time_conv(minutest): ...@@ -123,7 +123,7 @@ def time_conv(minutest):
def get_comments(): def get_comments():
try: try:
data = open("/srv/apps/physical/majia/guanshui.txt", "r") data = open("/srv/apps/cybertron/guanshui.txt", "r")
list_guanshui = [] list_guanshui = []
for i in data: for i in data:
list_guanshui.append(i) list_guanshui.append(i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment