projects
/
meabook
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added lost function
[meabook]
/
database
/
SQLite.py
diff --git
a/database/SQLite.py
b/database/SQLite.py
index
5cd8bb4
..
f26d176
100644
(file)
--- a/
database/SQLite.py
+++ b/
database/SQLite.py
@@
-74,6
+74,11
@@
class SQLite:
execute("DELETE from struct")
self.conn.commit()
execute("DELETE from struct")
self.conn.commit()
+ def get_fields(self):
+ """Returns all fields from FIELDS table."""
+
+ return [item[0] for item in self.conn.execute( \
+ "SELECT name FROM fields").fetchall()]
# operations with DATA table
def add_entry(self, entry):
# operations with DATA table
def add_entry(self, entry):