Viewing a response to: @yalzeee/tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6
I really love the way you applied Jinja logic on this code, but i have a question, please how can i write an else loop?
author | kenechukwu2 |
---|---|
permlink | re-yalzeee-tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6-20180728t204612626z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-07-28 20:46:15 |
last_update | 2018-07-28 20:46:15 |
depth | 1 |
children | 1 |
last_payout | 2018-08-04 20:46:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 119 |
author_reputation | 1,373,218,176,262 |
root_title | "[Tutorial]Developing and institutions data collection web front-end and back-end with python3.6(Final Part6)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,317,463 |
net_rshares | 2,103,875,159 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yalzeee | 0 | 2,103,875,159 | 100% |
The else boolean is also written similarly to the elif and even the for loop for instance with jinja we can say ``` #assuming that we already have our if or if and elif statements {% else %} {<p>whatever content you would like to display</p> {%endelse%} ``` Hope that helps
author | yalzeee |
---|---|
permlink | re-kenechukwu2-re-yalzeee-tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6-20180728t205529069z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-07-28 20:55:30 |
last_update | 2018-07-28 20:55:30 |
depth | 2 |
children | 0 |
last_payout | 2018-08-04 20:55:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 275 |
author_reputation | 12,484,565,044,191 |
root_title | "[Tutorial]Developing and institutions data collection web front-end and back-end with python3.6(Final Part6)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,318,104 |
net_rshares | 8,360,788,785 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
portugalcoin | 0 | 6,288,790,522 | 28% | ||
yalzeee | 0 | 2,071,998,263 | 100% |