CodeForPhilly / CodeForPhilly/stately

Form submission should save number fields as numbers in JSON

Đang mở
#16 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
22
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

In order for this event handler to work, `cost`'s type must be an integer.

``` python
if data.cost >= 500:
change_state('Awaiting CFO Approval')
```

Which means the form data grabber should recongise the `` and save it as a number. This is like the one time when JavaScript is easier :P I assume there's no way to enable loose typing in event handlers, @mjumbewu, but worth asking..

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by locating the form data grabber and the handling for . Verify that submitted numeric values are stored as numbers in JSON and that the shown Python comparison with data.cost works as intended.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.