Coverage for database/get.py: 75%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2get.py
4contains get
5"""
7import os
10def get(*args):
11 """
12 get(*args)
14 retrieves data from database with args as path
15 """
17 with open(os.path.join(*(["db-database"]+list(args))), 'r', encoding="utf-8") as file:
18 return file.read().splitlines()