-
1
Since i used unique constraint to stop duplicate application, he asked a hypothetical situation what if the company wants to give the student second chance, but cant cause he cant apply twice so now explain a solutionTimes asked 1Official solution
SimpleDuplicate booking/register rokne ke liye unique constraint + query check pehle.
Example
exists = Booking.query.filter_by(user_id=uid, slot_id=sid).first() if exists: flash('Already booked'); abort/redirectCommunity answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet