Skip to content

Commit

Permalink
Merge pull request #51 from GabrielRF/module-carreirs
Browse files Browse the repository at this point in the history
Move APIs dos carreirs para o módulo carriers
  • Loading branch information
GabrielRF authored Oct 6, 2019
2 parents 14f5ee5 + 3dd2010 commit 07f0d01
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 07f0d01

Please sign in to comment.