Commit c0b16d1d authored by Mindiell's avatar Mindiell

Mise de la note à 1 par défaut, et suppression du titre dans la base, l'import...

Mise de la note à 1 par défaut, et suppression du titre dans la base, l'import Drupal s'en charge déjà
parent 3f60ac59
...@@ -263,7 +263,7 @@ class Wantzel(object): ...@@ -263,7 +263,7 @@ class Wantzel(object):
Utils.debug("rp msg : %s" % msg) Utils.debug("rp msg : %s" % msg)
Utils.debug("rp title : %s" % title) Utils.debug("rp title : %s" % title)
cite = 0 cite = 0
note = 0 note = 1
url = get_url(msg) url = get_url(msg)
Utils.debug("url: %s" % url) Utils.debug("url: %s" % url)
if url=="": if url=="":
...@@ -285,14 +285,14 @@ class Wantzel(object): ...@@ -285,14 +285,14 @@ class Wantzel(object):
cite += 2 cite += 2
# Archive this article # Archive this article
if "a" in command: if "a" in command:
note -= 2 note = -2
Utils.debug("Adding an article by %s: %s" % (user, url)) Utils.debug("Adding an article by %s: %s" % (user, url))
result = cursor.execute( result = cursor.execute(
"""INSERT INTO presse SET """INSERT INTO presse SET
url=%s, provenance=%s, cite=%s, note=%s, datec=NOW(), title=%s, url=%s, provenance=%s, cite=%s, note=%s, datec=NOW(), title='',
lang='', published=0, nid=0, screenshot=0, fetched=0, seemscite=0 lang='', published=0, nid=0, screenshot=0, fetched=0, seemscite=0
""", """,
(url, user, cite, note, title) (url, user, cite, note)
) )
self.send_message(channel, messages["rp_new_article"] % user) self.send_message(channel, messages["rp_new_article"] % user)
else: else:
......
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