Skip to content

Commit e35f862

Browse files
Updated the semicolons, commented lines and identical operands
1 parent 31fd2e8 commit e35f862

5 files changed

Lines changed: 6 additions & 32 deletions

File tree

src/backend/common/database/cosmosdb.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,6 @@ async def update_batch_entry(
352352
batch["file_count"] = file_count
353353

354354
await self.batch_container.replace_item(item=batch_id, body=batch)
355-
# if isinstance(status, ProcessStatus):
356-
# self.logger.info(f"Updated batch {batch_id} to status {status.value}")
357-
# else:
358-
# self.logger.info(f"Updated batch {batch_id} to status {status}")
359355

360356
return batch
361357
except Exception as e:

src/frontend/src/api/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export const renderErrorSection = (batchSummary, expandedSections, setExpandedSe
414414

415415
export const renderErrorContent = (batchSummary) => {
416416
// Group errors by file
417-
const errorFiles = batchSummary.files.filter(file => file.error_count && file.error_count);
417+
const errorFiles = batchSummary.files.filter(file => file.error_count);
418418
if (errorFiles.length === 0) {
419419
return (
420420
<div className={useStyles().errorItem}>

src/frontend/src/components/batchHistoryPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface BatchHistoryItem {
2121
status: string;
2222
}
2323
const HistoryPanel: React.FC<HistoryPanelProps> = ({ isOpen, onClose }) => {
24-
const headers = {}
24+
const headers = {};
2525
const [batchHistory, setBatchHistory] = useState<BatchHistoryItem[]>([]);
2626
const [loading, setLoading] = useState(false);
2727
const [error, setError] = useState<string | null>(null);

src/frontend/src/pages/modernizationPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,13 @@ const getPrintFileStatus = (status: string): string => {
477477

478478
const ModernizationPage = () => {
479479
const { batchId } = useParams<{ batchId: string }>();
480-
const navigate = useNavigate()
480+
const navigate = useNavigate();
481481

482482
// Redux state to listen for start processing completion
483483
const batchState = useSelector((state: any) => state.batch);
484484

485485
const [batchSummary, setBatchSummary] = useState<BatchSummary | null>(null);
486-
const styles = useStyles()
486+
const styles = useStyles();
487487
const [text, setText] = useState("");
488488
const [isPanelOpen, setIsPanelOpen] = React.useState(false); // Add state management
489489

@@ -494,9 +494,9 @@ const ModernizationPage = () => {
494494
const [showLoading, setShowLoading] = useState(true);
495495
const [loadingError, setLoadingError] = useState<string | null>(null);
496496
const [selectedFilebg, setSelectedFile] = useState<string | null>(null);
497-
const [selectedFileId, setSelectedFileId] = React.useState<string>("")
497+
const [selectedFileId, setSelectedFileId] = React.useState<string>("");
498498
const [fileId, setFileId] = React.useState<string>("");
499-
const [expandedSections, setExpandedSections] = React.useState<string[]>([])
499+
const [expandedSections, setExpandedSections] = React.useState<string[]>([]);
500500
const [progressPercentage, setProgressPercentage] = useState(0);
501501
const [allFilesCompleted, setAllFilesCompleted] = useState(false);
502502
const [isZipButtonDisabled, setIsZipButtonDisabled] = useState(true);

tests/e2e-test/tests/conftest.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ def pytest_html_report_title(report):
3434
report.title = "Automation_CodeGen"
3535

3636

37-
# Add a column for descriptions
38-
# def pytest_html_results_table_header(cells):
39-
# cells.insert(1, html.th("Description"))
40-
41-
42-
# def pytest_html_results_table_row(report, cells):
43-
# cells.insert(
44-
# 1, html.td(report.description if hasattr(report, "description") else "")
45-
# )
46-
47-
4837
log_streams = {}
4938

5039

@@ -120,14 +109,3 @@ def rename_duration_column():
120109

121110
# Register this function to run after everything is done
122111
atexit.register(rename_duration_column)
123-
124-
125-
# Add logs and docstring to report
126-
# @pytest.hookimpl(hookwrapper=True)
127-
# def pytest_runtest_makereport(item, call):
128-
# outcome = yield
129-
# report = outcome.get_result()
130-
# report.description = str(item.function.__doc__)
131-
# os.makedirs("logs", exist_ok=True)
132-
# extra = getattr(report, "extra", [])
133-
# report.extra = extra

0 commit comments

Comments
 (0)