Update imports

This commit is contained in:
Fred Boniface 2023-11-18 10:25:23 +00:00
parent cf24abd250
commit 457933ec15
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='social-photos',
version='1.1',
version='1.2',
packages=find_packages(),
install_requires=[
'blurhash==1.1.4',

View File

@ -1,8 +1,8 @@
from load_config import config
from . import load_config
from mastodon import Mastodon
m = Mastodon(access_token=config['boost_mastodon']['token'], api_base_url=config['boost_mastodon']['server'])
m = Mastodon(access_token=load_config.config['boost_mastodon']['token'], api_base_url=load_config.config['boost_mastodon']['server'])
def boost(url):
search_results = m.search(url, resolve=True, exclude_unreviewed=False)

View File

@ -1,5 +1,5 @@
import flickrapi
import load_config
from . import load_config
print("Authenticating with Flickr")
flickr = flickrapi.FlickrAPI(load_config.config['flickr']['app_api'], load_config.config['flickr']['app_secret'])

View File

@ -1,4 +1,4 @@
import load_config
from . import load_config
from mastodon import Mastodon
import datetime, pytz