Skip to content

Commit

Permalink
Move carreirs API files to carriers module
Browse files Browse the repository at this point in the history
  • Loading branch information
rougeth committed Oct 6, 2019
1 parent c120f5c commit 3dd2010
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Empty file added carriers/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apitrackingmore.py → carriers/trackingmore.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import datetime
from pymongo import ASCENDING, MongoClient

import apigeartrack as geartrack
from carriers import geartrack

# https://www.trackingmore.com/api-index.html - Codigos de retorno da API
config = configparser.ConfigParser()
Expand Down
4 changes: 2 additions & 2 deletions check_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from datetime import date
import status
from misc import check_type
import apicorreios as correios
import apitrackingmore as trackingmore
from carreirs import correios
from carreirs import trackingmore

def check_update(code, max_retries=3):
# print('check_update')
Expand Down
5 changes: 3 additions & 2 deletions misc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import re
import apicorreios as correios
import apitrackingmore as trackingmore
from carreirs import apicorreios as correios
from carreirs import apitrackingmore as trackingmore
from pymongo import MongoClient
from telebot import types


client = MongoClient()
db = client.rastreiobot

Expand Down
2 changes: 1 addition & 1 deletion rastreiobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sentry_sdk
import status
import telebot
import apicorreios as correios
from carreirs import correios
from check_update import check_update
from math import ceil
from misc import check_type, send_clean_msg, check_package
Expand Down

0 comments on commit 3dd2010

Please sign in to comment.