Compare commits

..

1 Commits

Author SHA1 Message Date
00d0ef943d updated demo picture 2019-02-13 14:29:11 +01:00
4 changed files with 1 additions and 22 deletions

View File

@ -1,12 +1,10 @@
# MOVED PERMANENTLY TO GITHUB
https://github.com/michigg/codimd_note_overview
# CodiMD note overview
a searchable list of existing hackmd pads [https://padlist.wiai.de/](https://padlist.wiai.de/)
![demo.jpg](demo.jpg)
![demo.png](demo.png)
## Testing locally

BIN
demo.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

BIN
demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -1,19 +0,0 @@
import os
import psycopg2
DB_HOST = os.environ.get('DB_HOST')
DB_NAME = os.environ.get('POSTGRES_DB')
DB_USER = os.environ.get('POSTGRES_USER')
DB_PASSWORD = os.environ.get('POSTGRES_PASSWORD')
deletion_statement = 'DELETE FROM "Notes" WHERE "content" = \'\';'
try:
conn = psycopg2.connect(host=DB_HOST, database=DB_NAME, user=DB_USER, password=DB_PASSWORD)
cur = conn.cursor()
cur.execute(deletion_statement)
conn.commit()
cur.close()
conn.close()
except Exception as e:
print(e)