Browse Source

fixed circular import

main
westernmeadow 1 year ago
parent
commit
371d077c24
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      Forums/Utilities/utilities.py
  2. +3
    -1
      MarketPlaces/Utilities/utilities.py

+ 3
- 1
Forums/Utilities/utilities.py View File

@ -6,6 +6,7 @@ import re
import hashlib import hashlib
import base64 import base64
import io import io
import configparser
from datetime import datetime, timedelta from datetime import datetime, timedelta
import datetime as fulldatetime import datetime as fulldatetime
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@ -17,7 +18,8 @@ from PIL import Image
def generate_aes_key(): def generate_aes_key():
from Forums.Initialization.forums_mining import config
config = configparser.ConfigParser()
config.read('../../setup.ini')
secret = config.get('Encryption', 'secret') secret = config.get('Encryption', 'secret')
secret_bytes = bytes(secret, encoding="utf-8") secret_bytes = bytes(secret, encoding="utf-8")


+ 3
- 1
MarketPlaces/Utilities/utilities.py View File

@ -6,6 +6,7 @@ import re
import hashlib import hashlib
import base64 import base64
import io import io
import configparser
from datetime import datetime, timedelta from datetime import datetime, timedelta
import datetime as fulldatetime import datetime as fulldatetime
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@ -17,7 +18,8 @@ from PIL import Image
def generate_aes_key(): def generate_aes_key():
from MarketPlaces.Initialization.markets_mining import config
config = configparser.ConfigParser()
config.read('../../setup.ini')
secret = config.get('Encryption', 'secret') secret = config.get('Encryption', 'secret')
secret_bytes = bytes(secret, encoding="utf-8") secret_bytes = bytes(secret, encoding="utf-8")


Loading…
Cancel
Save