Skip to content

Commit

Permalink
fix: update sync logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Jan 29, 2025
1 parent bc1584d commit 76980bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def sync_submissions_spreadsheet(worksheet, region, since=None):
.all()
)
rows = []

app_subdomain = "app"
if not os.getenv("ENVIRONMENT") == "prod":
app_subdomain = "dev"

for rec in submissions_to_add:
submission = rec.data
info = submission.get("user", {})
Expand Down Expand Up @@ -96,6 +101,7 @@ def sync_submissions_spreadsheet(worksheet, region, since=None):
submission.get("damage"),
len(submission.get("files", [])),
yes_no(submission.get("resumed")),
f"https://{app_subdomain}.propertytaxproject.com/{region}/resume?submission={rec.uuid}", # noqa
]
)

Expand Down
2 changes: 1 addition & 1 deletion src/pages/steps/homeowner-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const HomeownerInfo = () => {
dispatch({
type: "set-homeowner-info",
user: values,
comparables: res.comparables,
comparables: res.comparables || [],
target: res.target,
})
if (appeal.region === "detroit") {
Expand Down

0 comments on commit 76980bf

Please sign in to comment.