diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-07 20:46:16 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-07 20:46:16 +0100 |
| commit | f72d816f8d5bb6f363b1ae43debdcff4dafef074 (patch) | |
| tree | 3d95b058efced83297b881e648a5c816f1eaacc6 /queries.py | |
| parent | da71062508f53d2674e1b9ea90764b7ba650c412 (diff) | |
| download | apigrabber-f72d816f8d5bb6f363b1ae43debdcff4dafef074.tar.gz apigrabber-f72d816f8d5bb6f363b1ae43debdcff4dafef074.zip | |
remove code not related to API data fetching
Diffstat (limited to 'queries.py')
| -rw-r--r-- | queries.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/queries.py b/queries.py deleted file mode 100644 index 1e6c3cc..0000000 --- a/queries.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -import asyncio -import glob -import os -import asyncpg - -queries = dict() - -async def load_queries(path): - """Prepares a folder of SQL files as SQL statements. - - :param path: Path to the `.sql` files. - :type path: str - """ - # load from queries/ - queryfiles = glob.glob(path + "/*.sql") - for fp in queryfiles: - with open(fp, "r", encoding="utf-8-sig") as qfile: - name = os.path.splitext(os.path.basename(fp))[0] - queries[name] = qfile.read() |
