started remake search
[meabook] / database / SQLite.py
index 0b2447e..82558fd 100644 (file)
@@ -237,7 +237,7 @@ class SQLite:
         return execute("SELECT id, value FROM data WHERE value LIKE '%s%%' \
             AND field_id=? LIMIT 50" % pattern.capitalize(), (field_id,)).fetchall()
 
-    def _get_entry(self, _id):
+    def get_entry(self, _id):
         """Returns full entry by it id."""
 
         execute = self.conn.execute
@@ -251,7 +251,7 @@ class SQLite:
             entry_dict['image'] = sql_res[0]
         return entry_dict
 
-    def get_entry(self, _id):
+    def _get_entry(self, _id):
         """Returns full entry by it id."""
 
         execute = self.conn.execute