Skip to content

Commit

Permalink
Update FetchReplacementData.py
Browse files Browse the repository at this point in the history
  • Loading branch information
asenichHHSD committed Oct 10, 2024
1 parent ac9f390 commit 1ffa907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FetchReplacementData.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def fetchReplacementData(days: int):
# writer.writerow(["Replacement Date", "Item", "Model", "Building", "Service Request", "Technician", "Asset Number", "Username", "Full Description"])

# Write the data rows
for replaceDate, itemType, ticketCat, subCat, itemCat, itemTypeModel, replacementBuilding, replacementSRNum, replacementTech, replacementAsset, replacementUsername, replacementDesc in zip(replacementDate, item, category, subCategory, itemCategory, itemModel, building, srNumber, technician, assetNumbers, userName, problemDescriptions):
for replaceDate, itemType, ticketCat, subCat, itemCat, itemTypeModel, replacementBuilding, replacementSRNum, replacementTech, replacementAsset, replacementUsername, replacementDesc in tqdm(zip(replacementDate, item, category, subCategory, itemCategory, itemModel, building, srNumber, technician, assetNumbers, userName, problemDescriptions),desc="Writing Data to CSV", unit="Row", colour="yellow", leave=False, total=len(srNumber)):
formattedString = ' '.join(replacementDesc.splitlines())
# writer.writerow([asset, formattedString])
try:
Expand Down

0 comments on commit 1ffa907

Please sign in to comment.