Voting & Rating

17 views
Skip to first unread message

mostwanted

unread,
Aug 25, 2020, 12:31:13 PM8/25/20
to web2py-users

Hey guys, I'm looking at the voting & rating example on the book (http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax?search=voting#Voting-and-rating) & was wondering how I could use (request.env.remote_addr) to prevent a previously voted user from voting again.

Regards;

Mostwanted

António Ramos

unread,
Aug 25, 2020, 12:56:22 PM8/25/20
to web...@googlegroups.com
If the vote was made by a logged in user you should find it in the db right ?

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3b88b13e-4490-4dad-b5db-88056e853f25n%40googlegroups.com.

mostwanted

unread,
Aug 25, 2020, 2:13:24 PM8/25/20
to web2py-users
😂 😂 😂 😂 😂 😂  Ok Ramos, I'll put in some effort
Reply all
Reply to author
Forward
0 new messages