Skip to content

Commit

Permalink
change imports
Browse files Browse the repository at this point in the history
  • Loading branch information
guidopetri committed Mar 18, 2020
1 parent 24e8893 commit c55ef3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions chess_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
from luigi.format import Nop
from luigi import Task, LocalTarget
from pandas import DataFrame
from postgres_templates import CopyWrapper, HashableDict, TransactionFactTable
from pipeline_import.postgres_templates import CopyWrapper, HashableDict
from pipeline_import.postgres_templates import TransactionFactTable
from datetime import datetime, timedelta
from configs import lichess_token, stockfish_cfg, postgres_cfg
from pipeline_import.configs import lichess_token, stockfish_cfg, postgres_cfg


def query_for_column(table, column):
Expand Down Expand Up @@ -57,8 +58,9 @@ def run(self):
from lichess.format import PYCHESS
from pandas import DataFrame
from calendar import timegm
from visitors import EvalsVisitor, ClocksVisitor, QueenExchangeVisitor
from visitors import CastlingVisitor, StockfishVisitor
from pipeline_import.visitors import EvalsVisitor, ClocksVisitor
from pipeline_import.visitors import QueenExchangeVisitor
from pipeline_import.visitors import CastlingVisitor, StockfishVisitor

self.output().makedirs()

Expand Down
2 changes: 1 addition & 1 deletion newsletter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from luigi.format import Nop
from luigi.util import requires
from luigi.parameter import Parameter, ListParameter
from configs import sendgrid, newsletter_cfg, postgres_cfg
from pipeline_import.configs import sendgrid, newsletter_cfg, postgres_cfg


class GetData(Task):
Expand Down
2 changes: 1 addition & 1 deletion pipeline_import/postgres_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __hash__(self):


class PostgresTable(postgres.CopyToTable):
from configs import postgres_cfg
from .configs import postgres_cfg

pg_cfg = postgres_cfg()
user = pg_cfg.user
Expand Down

0 comments on commit c55ef3f

Please sign in to comment.