Python - SqlAlchemy: Filter query by great circle distance?

后端 未结 3 1902
醉酒成梦
醉酒成梦 2021-01-07 08:24

I am using Python and Sqlalchemy to store latitude and longitude values in a Sqlite database. I have created a hybrid method for my Location object,

@hybrid_         


        
3条回答
  •  半阙折子戏
    2021-01-07 08:38

    It does look like you've done everything correctly, but somehow the method is not actually getting 'hybridized'. Could you have done something stupid, like not actually put the decorator on in your source code?

提交回复
热议问题