From c2fb7b81873ec99732ca768c5a4b405d0d0b34b0 Mon Sep 17 00:00:00 2001 From: Zac B Date: Tue, 16 Oct 2018 13:12:18 -0700 Subject: [PATCH] Cleaned up app.py file --- __pycache__/app.cpython-37.pyc | Bin 9742 -> 9652 bytes app.py | 12 +----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/__pycache__/app.cpython-37.pyc b/__pycache__/app.cpython-37.pyc index f352ebee91cdd65fb96d68ba88716883ec4f12a4..931f71b89a66a694692e492e2f2ad9f9be76952b 100644 GIT binary patch delta 1837 zcmZuyO>7%Q6!vWFwd1V4Ydf~rPU6Il^W*%|NFl#&$sd#wLP`*6aA|7Qo5aPj>Fg#z zdMFYIwNi_O-T|ox4u}(6fb@U_LLeb76%rDnLJPfc;KHFrLR11IcyAmhfi{-Eym|Bf z=FRuUZ_eL%!awcvc^&xo_uSXH8{HrIZ@I=KT+ZOv3?f(#i@hLozr`#^)=^+fj*PUU z%vaVcTUOhaY4CxCjKsre$=z_RL5I__>UHAMQRiVivHOZVA!#YvZYM|+bih}hcamKs z>IgP7c#IYT;w1GTjKXX6U91N_sDC%O9{_VzWmxsbE_I{XPUGX{?R=?NXgkM^f>E}L z`I0%nJ84U!0?olvWxZG)*swNB8OAAX#>;*9k7o!12)2^nvNp*1T;4KxFX>wdTm&Mc zOi~>Jmatbk-1F+}G-wSi>un$Dzmfe$&K$k~-T>#jh3%qDOoJ?)VactK>)k@!(qRGVPT ze|?%fGj4Gh9zmH;BG~n7`RxiXT87C-NO=(7$+M)O{_|sE3&Lu5=xr2D4+17&UP>{A zDf*x%=!3ts5%^Y}iBoHNwe{8hu2o8<%1g!aI$RF)`zUd(QCaxStHX6o4ZVlj>Y1G~ z^D>X5Fj!Di@UwPRt_B1vF!cauJD`O>yx*D6z(0ZSYp!;1j7>sgD9QTZ;m|ny3@(JC z>^NKr{c^};AWEgpBG@uFHY?i(S4rb0=p$%G!25laqxs9R?tJFlvgBbJp3N%-CH@TRcj9oiISxzlD{K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s zIRBC5FJnHE!9iL-2QA62OxErADCuYEj_!$#NV*vTJJsqVN|18FV{`a0tc)ZsA4hls zftNYRUg^+*?5&R8o}a;M<7j$B4a6>clY%G&$;t;jnm~`TyB(KTxBpUNLo&NYg*$eo zirFw7lMdp$BGBGi6;ZbL*zH7u99#Y)5hl@AhcG~N%nJ_8>{Con6`+u@RCYVxRRoD~ z8?HP9GheELdJm%Se~x#x!~N_^s)uOoi&Q5$&fL^{UkGM4}BY7%0x>713}^M7AFC{~^f#8+a!<&wTKcrLJD zJ}Eto_ja>^{C0AHRr5xMSB3;r-g>j>`Wp3_xW+( zuxjWEl%^r2Ql#d&ITKnj12R9-r|R8$EE0%>Bkh2Jh?)!~LwY(H)e}h>Y%Lj&bVh>z E0Ju+ju>b%7 diff --git a/app.py b/app.py index 534a63a..1900242 100644 --- a/app.py +++ b/app.py @@ -48,12 +48,7 @@ def do_login(user): def do_logout(): """Logout user.""" - print('\n\n\n\n', 'boop') - - print('\n\n\n\n', session) - - # import pdb; pdb.set_trace() - + if CURR_USER_KEY in session: del session[CURR_USER_KEY] @@ -120,8 +115,6 @@ def logout(): do_logout() - # No flash message - return redirect("/login") ############################################################################## @@ -177,7 +170,6 @@ def show_following(user_id): return redirect("/") user = User.query.get_or_404(user_id) - import pdb; pdb.set_trace() return render_template('users/following.html', user=user) @@ -233,7 +225,6 @@ def profile(): if form.validate_on_submit(): - # FIX THIS! user_auth = User.authenticate(username=g.user.username, password=form.data['password']) if user_auth: @@ -341,7 +332,6 @@ def remove_favorite_message(message_id): user_id = g.user.id unfavorite = Favorite.query.filter(Favorite.msg_id==message_id).first() - # import pdb; pdb.set_trace() db.session.delete(unfavorite) db.session.commit()