Skip to content

Commit

Permalink
add ini files
Browse files Browse the repository at this point in the history
  • Loading branch information
colin committed Dec 10, 2023
1 parent 174728c commit 8a4d891
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions helpers/favourites.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import configparser
import json
import os

import requests

import helpers.connection as db

import configparser

import os


config = configparser.ConfigParser()
file_path = '../ini/favourites.ini'
absolute_path = os.path.abspath(os.path.join(os.getcwd(), file_path))

print(absolute_path)
config.read(absolute_path)


# function to return the locations user had saved as favourites
# from the database along with the place details
def retrieve_favourites(user):
Expand Down

0 comments on commit 8a4d891

Please sign in to comment.