Commit 32e5a81a authored by lixiaofang's avatar lixiaofang

add

parent 16027a9f
...@@ -24,5 +24,29 @@ ...@@ -24,5 +24,29 @@
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" /> <option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings> </formatting-settings>
</DBN-SQL> </DBN-SQL>
<DBN-PSQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false" />
</DBN-PSQL>
<DBN-SQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false">
<option name="STATEMENT_SPACING" value="one_line" />
<option name="CLAUSE_CHOP_DOWN" value="chop_down_if_statement_long" />
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
</code_scheme> </code_scheme>
</component> </component>
\ No newline at end of file
...@@ -13,7 +13,7 @@ from get_session import get_comments, get_cookies, click, time_conv, login, repl ...@@ -13,7 +13,7 @@ from get_session import get_comments, get_cookies, click, time_conv, login, repl
@shared_task @shared_task
def auto_click(es_type, id): def auto_click(id):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor() cursor = pc.cursor()
...@@ -67,7 +67,7 @@ def auto_click(es_type, id): ...@@ -67,7 +67,7 @@ def auto_click(es_type, id):
@shared_task @shared_task
def auto_reply(es_type,id): def auto_reply(id):
try: try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306) pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor() cursor = pc.cursor()
......
...@@ -9,12 +9,12 @@ class CeleryTaskRouter(object): ...@@ -9,12 +9,12 @@ class CeleryTaskRouter(object):
"tapir-alpha": [ "tapir-alpha": [
'injection.data_sync.tasks.write_to_es', 'injection.data_sync.tasks.write_to_es',
], ],
# "majia-alpha": [ "majia-alpha": [
# 'injection.data_sync.auto_instant_click.auto_click', 'injection.data_sync.auto_instant_click.auto_click',
# ], ],
# "majia-alpha": [ "majia-alpha": [
# 'injection.data_sync.auto_instant_click.auto_reply', 'injection.data_sync.auto_instant_click.auto_reply',
# ] ]
} }
......
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