aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/docs.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py
index 9661f768..06f83c7f 100644
--- a/wqflask/wqflask/docs.py
+++ b/wqflask/wqflask/docs.py
@@ -12,14 +12,12 @@ class Docs:
"FROM Docs WHERE Docs.entry LIKE %s", (str(entry),))
result = cursor.fetchone()
self.entry = entry
- if result == None:
- self.title = self.entry.capitalize()
- self.content = ""
- else:
-
+ if result:
self.title = result[0]
self.content = result[1].decode("utf-8")
-
+ else:
+ self.title = self.entry.capitalize()
+ self.content = ""
self.editable = "false"
# ZS: Removing option to edit to see if text still gets vandalized
try: