deprem-yardim-backend-go icon indicating copy to clipboard operation
deprem-yardim-backend-go copied to clipboard

bug: For provision aid and confirmed option the incoming data is empty except all times

Open cccececcc opened this issue 2 years ago • 4 comments

Error Description

For confirmed and provision aid options, the data for last 24 hours is not being sent. Right now isn't there any data, can you check?

-- Add this info: discord username: cccececcc#4824

Error Environment

afetharita.com

Describe how you got the error step by step

Notifications/ Provision Aid & Confirmed Notifications/ Last 24 hours and previous

Expected Behaviour

Data displayed on map

Screenshots

image

Desktop Environment

  • Operating System: Windows 11
  • Browser Chrome
  • Version 109.0.5414.120

cccececcc avatar Feb 11 '23 09:02 cccececcc

Hi, now all our content is in English. I will activate it again when you make the translation.

yusufgns avatar Feb 11 '23 09:02 yusufgns

think about this

DevonHan avatar Feb 11 '23 13:02 DevonHan

hi

i think the major problem with this issue is not related with the code itself but database records. for "live aid" filter sends reason key as "erzak" value. but as far i see, these record timestamp values somehow have been set to a fixed value to 1675966352 which is equal to February 9, 2023 9:12:32, as of 2/12/2023 3:23 AM (right now) means "2 days ago"

1

that means these records gets only when you supply timestamp value older than February 9, 2023 9:12:32. if you supply newer date timestamp for example last 24 hours, it won't work. that explains why these records can be seen on "all the times" or last 3 days conditions. actually "all the times" simply sets a year ago from now. so any timestamp value older than Feb 9 meets epoch >= timestamp condition.

above all also valid for "confirmed" section. i didn't check but probably these fields somehow left as its default value or something.

thanks for your hard work.

0ffffffffh avatar Feb 12 '23 00:02 0ffffffffh