removed prints

This commit is contained in:
2026-01-22 03:25:17 +03:00
parent 62b1a4a48a
commit 0d02b569ad
3 changed files with 0 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ def process_sheet(df,real_arti: int):
df['arti'] = df['arti'].replace(Translit.TRANSLIT, regex=True)
df['arti'] = df['arti'].astype(str).str.upper().str.extract(f'({settings.PATTERN})')
# группировка
print(df)
df = processing(df)
validated_rows, errors = [], []
for i, row in df.iterrows():

View File

@@ -23,7 +23,6 @@ def process_sheet(df, multiply_price=1, sheet_name=''):
#Группировка
df = df.groupby('arti', as_index=False).agg({'counts': 'sum', 'price': 'sum'}) #groupping
print(df)
df = processing(df) #vlookup for ref_keys
validated_rows, errors = [], []
for i, row in df.iterrows(): #проходит построчно по df, где i - индекс строки, row - данные строки

View File

@@ -37,7 +37,6 @@ class YandexHandler(BaseHandler):
dfs = self.read(xls,sheet_name=["Получено от потребителей","Возвращено потребителям"], skiprows=[0,1,3])
else:
raise Exception(f"В файле {self.file_path.name} отсутствуют необходимые листы")
# вызываем функцию evaluating
validated_data = yandex_handler.evaluating(dfs)
print("Реализация Яндекс завершена, валидированных строк:", len(validated_data[0]), "Реализация", len(validated_data[1]), "Возвраты", validated_data[2], "Дата")
doc_creator = DocumentCreation(URL=settings.URL_REPORT)