On Tuesday, June 11, 2019 at 11:01:47 PM UTC-7, mostwanted wrote:
>
> Now i am in business!!!
>
>>
Good to hear!
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
Now i am in business!!!
This is how i implemented the changes you suggested:
{{letters=['Finance', 'Accountant']
found=False
for jobs in details:
if jobs.category in letters:
found=True
}}
Company: {{=jobs.company}}
Post:
On Tuesday, June 11, 2019 at 1:57:31 AM UTC-7, mostwanted wrote:
>
> Still doesn't give desired results, it only duplicates the *NO LISTINGS*
> statement!
>
What did you put where Massimaliano had "..."; that's where you have to
show the value.
{{=jobs.info}}
And to show the No Listing
Still doesn't give desired results, it only duplicates the *NO LISTINGS*
statement!
On Tuesday, June 11, 2019 at 9:59:57 AM UTC+2, Massimiliano wrote:
>
> Your last if is out of the for loop.
> Try this way (not tested )
>
> {{letters=['Finance', 'Accountant']
> for jobs in details:
Your last if is out of the for loop.
Try this way (not tested )
{{letters=['Finance', 'Accountant']
for jobs in details:
if jobs.category in letters:
}}
...
{{ else: }}
*NO LISTINGS!*
{{ pass }}
{{ pass }}
On Tue, Jun 11, 2019 at 9:04 AM
My task is very simple but its failing, I have some words in the database
that i am comparing to a list of words in the view, if any of the words
from the database matches those in the view all the details of that word
from the database should be displayed in a div in the view but if no word
6 matches
Mail list logo