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

4 statements  

1""" 

2get.py 

3 

4contains get 

5""" 

6 

7import os 

8 

9 

10def get(*args): 

11 """ 

12 get(*args) 

13 

14 retrieves data from database with args as path 

15 """ 

16 

17 with open(os.path.join(*(["db-database"]+list(args))), 'r', encoding="utf-8") as file: 

18 return file.read().splitlines()