Переглянути джерело

now checking case sensitive if user exists.

tBKwtWS 7 роки тому
батько
коміт
82c38fcd16
4 змінених файлів з 47 додано та 5 видалено
  1. 1 1
      .eric6project/pyRot.e4q
  2. 28 1
      .eric6project/pyRot.e6t
  3. 1 1
      irc/common/queries.py
  4. 17 2
      pyRot.e4p

+ 1 - 1
.eric6project/pyRot.e4q

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE UserProject SYSTEM "UserProject-4.0.dtd">
 <!-- eric6 user project file for project pyRot -->
-<!-- Saved: 2018-02-02, 01:26:20 -->
+<!-- Saved: 2018-02-02, 20:24:47 -->
 <!-- Copyright (C) 2018 tBKwtWS,  -->
 <UserProject version="4.0"/>

+ 28 - 1
.eric6project/pyRot.e6t

@@ -1,7 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE Tasks SYSTEM "Tasks-6.0.dtd">
 <!-- eric6 tasks file for project pyRot -->
-<!-- Saved: 2018-02-02, 01:26:20 -->
+<!-- Saved: 2018-02-02, 23:50:46 -->
 <Tasks version="6.0">
   <ProjectScanFilter></ProjectScanFilter>
+  <Task priority="1" completed="False" type="2" uid="{234d5c0b-8641-48f6-bd8a-fb56ea9754d7}">
+    <Summary>WARNING: &quot; + str(message))</Summary>
+    <Description></Description>
+    <Created>2018-02-02, 23:50:42</Created>
+    <Resource>
+      <Filename>irc/common/log.py</Filename>
+      <Linenumber>8</Linenumber>
+    </Resource>
+  </Task>
+  <Task priority="1" completed="False" type="2" uid="{f49fd638-f195-451e-98cf-4d5255d9cb24}">
+    <Summary>WARNING: keep the secret key used in production secret!</Summary>
+    <Description></Description>
+    <Created>2018-02-02, 23:50:43</Created>
+    <Resource>
+      <Filename>webgui/webgui/settings.py</Filename>
+      <Linenumber>22</Linenumber>
+    </Resource>
+  </Task>
+  <Task priority="1" completed="False" type="2" uid="{a02f047d-a650-4727-b5c3-98d3df53797d}">
+    <Summary>WARNING: don't run with debug turned on in production!</Summary>
+    <Description></Description>
+    <Created>2018-02-02, 23:50:43</Created>
+    <Resource>
+      <Filename>webgui/webgui/settings.py</Filename>
+      <Linenumber>25</Linenumber>
+    </Resource>
+  </Task>
 </Tasks>

+ 1 - 1
irc/common/queries.py

@@ -1,3 +1,3 @@
 def create_ifnot_onrecord(self, user):
-    if not self.db.one("SELECT id FROM users WHERE LOWER(name)=LOWER('" + user + "') AND network='" + self.network + "'"):    # User not on record.
+    if not self.db.one("SELECT id FROM users WHERE name='" + user + "' AND network='" + self.network + "'"):    # User not on record.
         self.db.run("INSERT INTO users (name, network) VALUES ('" + user + "', '" + self.network + "')")   # Create record.

+ 17 - 2
pyRot.e4p

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE Project SYSTEM "Project-5.1.dtd">
 <!-- eric project file for project pyRot -->
-<!-- Saved: 2018-02-02, 02:00:05 -->
+<!-- Saved: 2018-02-02, 20:24:47 -->
 <!-- Copyright (C) 2018 tBKwtWS,  -->
 <Project version="5.1">
   <Language>en_US</Language>
@@ -35,12 +35,27 @@
     <Source>irc/events/on_welcome.py</Source>
     <Source>irc/events/on_whoreply.py</Source>
     <Source>irc/original_testbot.py</Source>
+    <Source>webgui/manage.py</Source>
+    <Source>webgui/stats/__init__.py</Source>
+    <Source>webgui/stats/admin.py</Source>
+    <Source>webgui/stats/apps.py</Source>
+    <Source>webgui/stats/migrations/__init__.py</Source>
+    <Source>webgui/stats/models.py</Source>
+    <Source>webgui/stats/tests.py</Source>
+    <Source>webgui/stats/urls.py</Source>
+    <Source>webgui/stats/views.py</Source>
+    <Source>webgui/webgui/__init__.py</Source>
+    <Source>webgui/webgui/settings.py</Source>
+    <Source>webgui/webgui/urls.py</Source>
+    <Source>webgui/webgui/wsgi.py</Source>
   </Sources>
   <Forms/>
   <Translations/>
   <Resources/>
   <Interfaces/>
-  <Others/>
+  <Others>
+    <Other>pyRot.e4p</Other>
+  </Others>
   <MainScript>irc/bot.py</MainScript>
   <Vcs>
     <VcsType>None</VcsType>