Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Alexander Putilin
@eleweek
hey :)
just created this channel, it seems kind of nice
*gitter seems kind of nice
Alexander Putilin
@eleweek
hey everyone
i have troubles with my regular laptop
so I may not be fast to respond
but pls msg me here if you have questions
i'll be able to respond from my phone
and I now have an old netbook
Ryan Siemens
@rsiemens
So ran into an interesting issue. If you revoke the apps permissions with github then re authorize it it will create another record of <User> with same name/email fields
This message was deleted
def _get_user_checking_credentials(username, api_key):
        user = User.query.filter_by(name=username).first()
Ryan Siemens
@rsiemens
simple fix was to query by username and apikey
probably also have to find a way to handle the "dead" record now sitting in there.
Alexander Putilin
@eleweek
hmm
thanks for the catch
I think the simplest fix here would be to remove the last parameter in get_or_create her
user = get_or_create(User, name=user_json["login"], email=user_json.get("email"), github_access_token=access_token)
(i.e. github_access_token)
Alexander Putilin
@eleweek
added github repo intergration
Ghost
@ghost~55707c5a15522ed4b3e16cf9
hello hello
Alexander Putilin
@eleweek
hey :)
Alexander Putilin
@eleweek
@elimohl you could load a relationship dynamically when sorting by stars, I think
instead of always setting lazy='dynamic'
i forgot why I had lazy='joined' in the first place
(this is about PR #47)
Elizaveta
@elimohl
ok, so i need to figure out how to do this
Alexander Putilin
@eleweek
yes :)
lemme find some docs
you can override the default strategy
as a side note, sqlalchemy docs is horrible for beginners
/all so if you want to learn sqlalchemy, you should probably ask questions here :)
@/all test
@/all ^ see above
Alexander Putilin
@eleweek
:+1:
Rodrigo Graça
@rodrigograca31
Nice idea... :smile:
I've been using Gists to save my commands: https://gist.github.com/rodrigograca31 :smile:
Alexander Putilin
@eleweek
^ this looks cool!
maybe we should add some sort of gist integration
i am sure github has an api for this
Rodrigo Graça
@rodrigograca31
It looks like it has.... https://developer.github.com/v3/gists/ :smile:
come join, especially if you want to contribute
Patrick Allen
@patallen
hey
Alexander Putilin
@eleweek
hey :)
Larry Gray
@lwgray
how do you uninstall histsync?
Alexander Putilin
@eleweek
@lwgray Hi! Simply remove ~/.histsync dir and remove preexec() function from your .bashrc / .bash_profile