index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
21,496
ericflo/awesomestream
refs/heads/master
/awesomestream/repl.py
import code import sys from awesomestream.jsonrpc import Client def main(): try: host = sys.argv[1] except IndexError: host = 'http://localhost:9997/' banner = """>>> from awesomestream.jsonrpc import Client >>> c = Client('%s')""" % (host,) c = Client(host) code.interact(banner, l...
{"/tests/test_utils.py": ["/awesomestream/utils.py"], "/examples/sqlite_server.py": ["/awesomestream/backends.py", "/awesomestream/jsonrpc.py"], "/tests/test_backend.py": ["/awesomestream/backends.py"], "/awesomestream/repl.py": ["/awesomestream/jsonrpc.py"], "/awesomestream/backends.py": ["/awesomestream/utils.py"], "...
21,497
ericflo/awesomestream
refs/heads/master
/awesomestream/backends.py
import collections import datetime import simplejson import uuid from awesomestream.utils import all_combinations, permutations from awesomestream.utils import coerce_ts, coerce_dt class BaseBackend(object): def __init__(self, keys=None): self.keys = keys or [] def insert(self, data, date=None): ...
{"/tests/test_utils.py": ["/awesomestream/utils.py"], "/examples/sqlite_server.py": ["/awesomestream/backends.py", "/awesomestream/jsonrpc.py"], "/tests/test_backend.py": ["/awesomestream/backends.py"], "/awesomestream/repl.py": ["/awesomestream/jsonrpc.py"], "/awesomestream/backends.py": ["/awesomestream/utils.py"], "...
21,498
ericflo/awesomestream
refs/heads/master
/examples/redis_server.py
import os import sys # Munge the path a bit to make this work from directly within the examples dir sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..'))) from awesomestream.backends import RedisBackend from awesomestream.jsonrpc import create_app, run_server if __name__ == '__main__': backend =...
{"/tests/test_utils.py": ["/awesomestream/utils.py"], "/examples/sqlite_server.py": ["/awesomestream/backends.py", "/awesomestream/jsonrpc.py"], "/tests/test_backend.py": ["/awesomestream/backends.py"], "/awesomestream/repl.py": ["/awesomestream/jsonrpc.py"], "/awesomestream/backends.py": ["/awesomestream/utils.py"], "...
21,499
ericflo/awesomestream
refs/heads/master
/examples/basic_client.py
import os import sys # Munge the path a bit to make this work from directly within the examples dir sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..'))) from awesomestream.jsonrpc import Client from pprint import pprint if __name__ == '__main__': c = Client('http://127.0.0.1:9997/') items ...
{"/tests/test_utils.py": ["/awesomestream/utils.py"], "/examples/sqlite_server.py": ["/awesomestream/backends.py", "/awesomestream/jsonrpc.py"], "/tests/test_backend.py": ["/awesomestream/backends.py"], "/awesomestream/repl.py": ["/awesomestream/jsonrpc.py"], "/awesomestream/backends.py": ["/awesomestream/utils.py"], "...
21,505
Dharaneeshwar/LegitGoods
refs/heads/master
/account/urls.py
from django.urls import path from . import views urlpatterns=[ path('login/',views.login,name="login"), path('profile/<str:uid>/',views.profile,name="profile"), path('notification/',views.notification,name="notification"), path('payout/',views.payout,name="payout"), ]
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,506
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0002_auto_20201101_2254.py
# Generated by Django 3.1.2 on 2020-11-01 17:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( name='user', unique_together={('userid',)}, ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,507
Dharaneeshwar/LegitGoods
refs/heads/master
/cart/models.py
from django.db import models from product.models import Product # Create your models here. class Cart(models.Model): product = models.ForeignKey(Product, on_delete=models.CASCADE) userid = models.CharField(max_length=50) quantity = models.IntegerField(default = 1) def __str__(self): return str...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,508
Dharaneeshwar/LegitGoods
refs/heads/master
/api/urls.py
from django.urls import path, include from . import views urlpatterns=[ path('allproduct/',views.allProducts,name = "allprod"), path('myproducts/<str:uid>/',views.myProducts,name = "myprod"), path('getCartinfo/',views.getCartinfo,name = "getCartinfo"), path('addToCart/',views.addToCart,name = "addToCar...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,509
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0011_auto_20201104_1854.py
# Generated by Django 3.1.2 on 2020-11-04 13:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0010_category_image'), ] operations = [ migrations.AddField( model_name='product', name='global_delivery'...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,510
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0007_auto_20201028_1844.py
# Generated by Django 3.1.2 on 2020-10-28 13:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0006_auto_20201028_1412'), ] operations = [ migrations.AddField( model_name='product', name='inStock', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,511
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0007_auto_20201105_2120.py
# Generated by Django 3.1.2 on 2020-11-05 15:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0006_requestpayout'), ] operations = [ migrations.AlterField( model_name='requestpay...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,512
Dharaneeshwar/LegitGoods
refs/heads/master
/cart/stripe_cred.py
api_key = 'sk_test_51HjlhmJGh3Nsaj3rSkV3cbMkNHQ34RLCHhvJZc3PbvFszQnkTdy50fJjMIfPcAf2Z61JFln9bgVXVGyjhWAVkQ6T00VnH4oHyV'
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,513
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0006_requestpayout.py
# Generated by Django 3.1.2 on 2020-11-05 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0005_user_payout'), ] operations = [ migrations.CreateModel( name='RequestPayout', fields=[ ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,514
Dharaneeshwar/LegitGoods
refs/heads/master
/product/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse, JsonResponse from django.shortcuts import render from .models import Product, Category from account.models import PurchaseInfo from .forms import ProductForm from django.core import serializers # Create your views here. def productsho...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,515
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0005_auto_20201028_1400.py
# Generated by Django 3.1.2 on 2020-10-28 08:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0004_auto_20201027_2259'), ] operations = [ migrations.AlterField( model_name='product', name='product_im...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,516
Dharaneeshwar/LegitGoods
refs/heads/master
/product/forms.py
from django import forms from .models import Product,Category class ProductForm(forms.ModelForm): userid = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control d-none'}), label='') category = forms.ModelMultipleChoiceField( queryset=Category.objects.all(), widget=forms.C...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,517
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0004_auto_20201105_1548.py
# Generated by Django 3.1.2 on 2020-11-05 10:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0003_purchaseinfo'), ] operations = [ migrations.AlterField( model_name='purchaseinfo', name='notificatio...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,518
Dharaneeshwar/LegitGoods
refs/heads/master
/cart/urls.py
from django.urls import path from . import views urlpatterns=[ path('',views.mycart,name="mycart"), path('payment/',views.payment,name="payment"), path('charge/',views.charge,name="charge"), path('success/',views.success,name="success"), path('getPaymentTemplate/',views.getPaymentTemplate,name = "...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,519
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0005_user_payout.py
# Generated by Django 3.1.2 on 2020-11-05 15:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0004_auto_20201105_1548'), ] operations = [ migrations.AddField( model_name='user', name='payout', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,520
Dharaneeshwar/LegitGoods
refs/heads/master
/account/models.py
from django.db import models from product.models import Product # Create your models here. class User(models.Model): phone_number = models.CharField( max_length=12) email = models.EmailField(max_length=254) userid = models.CharField(max_length=50) name = models.CharField(max_length=50) address = mo...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,521
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0009_auto_20201103_0958.py
# Generated by Django 3.1.2 on 2020-11-03 04:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('product', '0008_auto_20201028_1922'), ] operations = [ migrations.RemoveField( model_name='product', name='tags', ),...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,522
Dharaneeshwar/LegitGoods
refs/heads/master
/account/migrations/0003_purchaseinfo.py
# Generated by Django 3.1.2 on 2020-11-05 09:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('product', '0012_review'), ('account', '0002_auto_20201101_2254'), ] operations = [ migrations.Creat...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,523
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0001_initial.py
# Generated by Django 3.1.2 on 2020-10-27 08:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,524
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0006_auto_20201028_1412.py
# Generated by Django 3.1.2 on 2020-10-28 08:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0005_auto_20201028_1400'), ] operations = [ migrations.AddField( model_name='product', name='product_imag...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,525
Dharaneeshwar/LegitGoods
refs/heads/master
/cart/migrations/0002_auto_20201030_1919.py
# Generated by Django 3.1.2 on 2020-10-30 13:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('product', '0008_auto_20201028_1922'), ('cart', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( name='cart', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,526
Dharaneeshwar/LegitGoods
refs/heads/master
/api/views.py
from django.shortcuts import render from django.http import JsonResponse, HttpResponse from product.models import Product, Category from cart.models import Cart from account.models import PurchaseInfo, User, RequestPayout from django.core import serializers import os from .twilio import account_sid,auth_token from twi...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,527
Dharaneeshwar/LegitGoods
refs/heads/master
/account/forms.py
from django import forms from .models import User class UserForm(forms.ModelForm): userid = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control d-none'}), label='') class Meta: model = User fields = '__all__' exclude = ['payout'] widgets = { 'phone_...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,528
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0012_review.py
# Generated by Django 3.1.2 on 2020-11-04 18:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('product', '0011_auto_20201104_1854'), ] operations = [ migrations.CreateModel( name='Review', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,529
Dharaneeshwar/LegitGoods
refs/heads/master
/cart/views.py
from django.shortcuts import render, redirect from django.http import JsonResponse,HttpResponse from .models import Cart from product.models import Product from account.models import User from .stripe_cred import api_key import stripe # Create your views here. stripe.api_key = api_key def mycart(request): return ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,530
Dharaneeshwar/LegitGoods
refs/heads/master
/account/views.py
from django.shortcuts import render, redirect from .models import User from django.http import JsonResponse from .forms import UserForm # Create your views here. def login(request): return render(request,'accounts/login.html') def profile(request,uid): if request.method == "POST": if User.objects.filt...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,531
Dharaneeshwar/LegitGoods
refs/heads/master
/product/urls.py
from django.urls import path from . import views urlpatterns=[ path('',views.productshow,name="productshow"), path('addproduct/',views.addProduct,name="addproduct"), path('myproducts/',views.myproducts,name="myproducts"), path('productsToDeliver/',views.productsToDeliver,name="productsToDeliver"), ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,532
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0010_category_image.py
# Generated by Django 3.1.2 on 2020-11-03 06:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0009_auto_20201103_0958'), ] operations = [ migrations.AddField( model_name='category', name='image', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,533
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0013_auto_20201106_1503.py
# Generated by Django 3.1.2 on 2020-11-06 09:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0012_review'), ] operations = [ migrations.AlterField( model_name='product', name='subtitle', ...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,534
Dharaneeshwar/LegitGoods
refs/heads/master
/product/models.py
from django.db import models # Create your models here. class Category(models.Model): category = models.CharField(max_length=50) image = models.ImageField(blank= True,upload_to='./',default = 'default.jpg') def __str__(self): return self.category class Product(models.Model): title = models.Ch...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,535
Dharaneeshwar/LegitGoods
refs/heads/master
/api/twilio.py
account_sid = 'ACe3513c8f0a05bc9503ddec6c263ec7bd' auth_token = '5c4c2db4c7de69d447e9ca9284734063'
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,536
Dharaneeshwar/LegitGoods
refs/heads/master
/account/admin.py
from django.contrib import admin from .models import User, PurchaseInfo, RequestPayout # Register your models here. admin.site.register(User) admin.site.register(PurchaseInfo) admin.site.register(RequestPayout)
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,537
Dharaneeshwar/LegitGoods
refs/heads/master
/product/migrations/0008_auto_20201028_1922.py
# Generated by Django 3.1.2 on 2020-10-28 13:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0007_auto_20201028_1844'), ] operations = [ migrations.AlterField( model_name='product', name='product_im...
{"/cart/models.py": ["/product/models.py"], "/product/views.py": ["/product/models.py", "/account/models.py", "/product/forms.py"], "/product/forms.py": ["/product/models.py"], "/account/models.py": ["/product/models.py"], "/api/views.py": ["/product/models.py", "/cart/models.py", "/account/models.py", "/api/twilio.py"...
21,538
Line290/improve_partial_fc
refs/heads/master
/train.py
import sys import numpy as np import mxnet as mx import time import cPickle # import custom_layers import logging import skcuda.cublasxt as cublasxt import math import os import scipy from data_iter import DataIter from mixmodule import create_net, mixModule print 'mxnet version' + mx.__version__ # ctx = [mx.gpu(i) ...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,539
Line290/improve_partial_fc
refs/heads/master
/data_iter.py
import mxnet as mx import time def DataIter(prefix = '/train/trainset/list_clean_28w_20180803', image_shapes=(64, 3, 240, 120), data_nthreads = 8): # prefix = '/train/trainset/list_clean_28w_20180803' image_shape = (image_shapes[1], image_shapes[2], image_shapes[3]) batch_size = image_shapes[0] # data_...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,540
Line290/improve_partial_fc
refs/heads/master
/train2.py
import sys import numpy as np import mxnet as mx import time import cPickle # import custom_layers import logging import os os.environ["MXNET_CPU_WORKER_NTHREADS"] = "32" import skcuda.cublasxt as cublasxt import math import os import scipy from data_iter import DataIter from mixmodule3 import create_net, mixModule sy...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,541
Line290/improve_partial_fc
refs/heads/master
/mixmodule.py
import sys import numpy as np import mxnet as mx import time import cPickle # import custom_layers import logging import skcuda.cublasxt as cublasxt import math import os import scipy # FEAT_DIM = 128 FEAT_DIM = 512 def ConvFactory(data, num_filter, kernel, stride=(1, 1), pad=(0, 0), act_type="relu", mirror_attr={},...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,542
Line290/improve_partial_fc
refs/heads/master
/DataGenerator.py
import numpy as np import cv2 import cPickle import os import mxnet as mx import time import pdb #datafn = '/media/data1/mzhang/data/car_ReID_for_zhangming/data/data.list' datafn = './listFolder/trainlist_reid/chongxun.list' def get_datalist(datafn): datafile = open(datafn, 'r') datalist = datafile.readlines() da...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,543
Line290/improve_partial_fc
refs/heads/master
/DataIter.py
import sys # sys.path.insert(0, '/home/yunfeiwu') import numpy as np import logging import mxnet as mx import DataGenerator as dg import operator import os # datafn = '/media/data1/mzhang/data/car_ReID_for_zhangming/data.list' # datafn = '/home/mingzhang/data/car_ReID_for_zhangming/data.list' datafn = './listFolder/...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,544
Line290/improve_partial_fc
refs/heads/master
/orig_list2rec_list.py
# from __future__ import print_function import os import sys # curr_path = os.path.abspath(os.path.dirname(__file__)) # sys.path.append(os.path.join(curr_path, "../python")) import mxnet as mx sys.path.insert(0, '/train/execute/distribution') import random import argparse import cv2 import time import traceback try: ...
{"/orig_list2rec_list.py": ["/DataGenerator.py"]}
21,551
shanexia1818/face_comparison
refs/heads/master
/run.py
import os import click from app import create_app config_name = os.environ.get('FLASK_CONFIG', 'default') app = create_app(config_name=config_name) @app.cli.command() @click.argument('test_names', nargs=-1) def test(test_names): """Run the unit tests""" import unittest if test_names: tests = un...
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,552
shanexia1818/face_comparison
refs/heads/master
/tests/test_compare.py
from tests import SetupMixin class CompareTestCase(SetupMixin): pass
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,553
shanexia1818/face_comparison
refs/heads/master
/config.py
import os BASE = os.path.abspath(os.path.dirname(__file__)) class Config: APP_NAME = 'face-comparison' SECRET_KEY = os.environ.get('SECRET_KEY') or 'secret-key' PROJECT_ROOT = BASE # compare faces similarity threshold THRESHOLD = float(os.environ.get('THRESHOLD')) \ if 'THRESHOLD' in os....
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,554
shanexia1818/face_comparison
refs/heads/master
/app/api.py
from face_engine import FaceError from flask import Blueprint, request, jsonify, current_app from skimage.io import imread from . import engine from .errors import bad_request, unsupported, unprocessable api = Blueprint('api', __name__) def allowed_files(filename): file_type = filename.rsplit('.', 1)[1].lower()...
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,555
shanexia1818/face_comparison
refs/heads/master
/tests/test_basics.py
from flask import current_app from tests import SetupMixin class BasicTestCase(SetupMixin): def test_app_exists(self): self.assertFalse(current_app is None) def test_app_is_testing(self): self.assertTrue(current_app.config['TESTING'])
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,556
shanexia1818/face_comparison
refs/heads/master
/app/__init__.py
from face_engine import FaceEngine from flask import Flask from config import config engine = FaceEngine() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[config_name]) # set FaceEngine detector model detector = app.config['ENGINE_DETECTOR_NAME'] if detector: ...
{"/run.py": ["/app/__init__.py"], "/app/api.py": ["/app/__init__.py"], "/app/__init__.py": ["/config.py", "/app/api.py"]}
21,564
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/a2c6970d8137_add_product_ids_to_contents.py
"""add product ids to contents Revision ID: a2c6970d8137 Revises: 0ad45412bffd Create Date: 2017-02-22 15:02:32.385131 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a2c6970d8137' down_revision = '0ad45412bffd' branch_labels = None depends_on = None def upg...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,565
ubqai/seesun_crm_services
refs/heads/master
/application/helpers.py
# -*- coding: utf-8 -*- import os, datetime, random, string from flask import render_template, request from werkzeug.utils import secure_filename from PIL import Image import qrcode from . import app def object_list(template_name, query, paginate_by=20, **context): page = request.args.get('page') if page and...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,566
ubqai/seesun_crm_services
refs/heads/master
/application/content/views.py
# -*- coding: utf-8 -*- import os, datetime from flask import Blueprint, flash, g, redirect, render_template, request, url_for, jsonify from flask_login import current_user from .. import app, db, cache from ..helpers import object_list, save_upload_file, delete_file, clip_image from ..models import Content, ContentCa...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,567
ubqai/seesun_crm_services
refs/heads/master
/province_seeds.py
from application.models import * fjs = SalesAreaHierarchy(name="福建省", level_grade=3) db.session.add(fjs) db.session.commit() for name in ["泉州市","漳州市","三明市","厦门市","龙岩市","宁德市","南平市","莆田市","福州市"]: item = SalesAreaHierarchy(name=name, level_grade=4, parent_id=fjs.id) db.session.add(item) db.session.commit() cc...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,568
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/0c451fc35b86_add_share_inventory.py
"""add share_inventory Revision ID: 0c451fc35b86 Revises: fe424f6b86a5 Create Date: 2017-03-28 14:09:45.798715 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0c451fc35b86' down_revision = 'fe424f6b86a5' branch_labels = None depends_on = None def upgrade(): ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,569
ubqai/seesun_crm_services
refs/heads/master
/application/project_report/views.py
# -*- coding: utf-8 -*- from flask import Blueprint, flash, redirect, render_template, url_for, request, current_app from ..models import * from flask_login import current_user from ..wechat.models import WechatCall from .. import cache project_report = Blueprint('project_report', __name__, template_folder='templates...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,570
ubqai/seesun_crm_services
refs/heads/master
/application/design_application/forms.py
# -*- coding: utf-8 -*- from wtforms import Form, StringField, SelectField, TextAreaField from wtforms.validators import * class DesignApplicationForm(Form): status = SelectField('申请状态', choices=[('新申请', '新申请'), ('申请通过', '申请通过'), ('申请不通过', '申请不通过')]) dl_file_memo = TextAreaField('备注')
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,571
ubqai/seesun_crm_services
refs/heads/master
/application/order_manage/views.py
# -*- coding: utf-8 -*- import json import base64 from flask import Blueprint, flash, redirect, render_template, url_for, request, send_file, current_app from flask.helpers import make_response from .. import app, cache from ..models import * from ..helpers import object_list, gen_qrcode, gen_random_string, delete_file...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,572
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/f5ff15a65fd0_add_status_to_project_report.py
"""add status to project report Revision ID: f5ff15a65fd0 Revises: 8a95ceb72160 Create Date: 2017-03-06 08:49:52.848479 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f5ff15a65fd0' down_revision = '8a95ceb72160' branch_labels = None depends_on = None def up...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,573
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/bcbb13072ffa_add_price_info_to_order_content.py
"""add price info to order content Revision ID: bcbb13072ffa Revises: 0dcc2e844976 Create Date: 2017-02-23 03:57:32.016026 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bcbb13072ffa' down_revision = '0dcc2e844976' branch_labels = None depends_on = None def...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,574
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/59eeab2bbaaf_add_appid_to_wechat_access_token.py
"""add_appid_to_wechat_access_token Revision ID: 59eeab2bbaaf Revises: d80a29ceb22a Create Date: 2017-03-03 09:31:18.365338 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '59eeab2bbaaf' down_revision = 'd80a29ceb22a' branch_labels = None depends_on = None de...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,575
ubqai/seesun_crm_services
refs/heads/master
/application/forms.py
from wtforms import Form, StringField, TextAreaField, PasswordField, validators from wtforms.csrf.session import SessionCSRF from datetime import timedelta from . import app # BASE CSRF FORM class BaseCsrfForm(Form): class Meta: csrf = True csrf_class = SessionCSRF csrf_secret = bytes(app....
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,576
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/cfd51dd8aaa0_add_available_number_to_material_.py
"""add available number to material application Revision ID: cfd51dd8aaa0 Revises: 9fea66319b4a Create Date: 2017-03-16 17:42:49.960680 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cfd51dd8aaa0' down_revision = 'dc4da3e2992c' branch_labels = None depends_on...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,577
ubqai/seesun_crm_services
refs/heads/master
/application/organization/views.py
from flask import Blueprint, flash, redirect, render_template, request, url_for, session from .. import app, db, cache from ..models import UserAndSaleArea, User, UserInfo, DepartmentHierarchy, SalesAreaHierarchy, AuthorityOperation, \ WebpageDescribe import traceback import json import datetime from .forms impor...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,578
ubqai/seesun_crm_services
refs/heads/master
/application/web_access_log/models.py
import datetime import re from .. import db # ----- request path classification ----- # Others module0_paths = """ /mobile/index""".split() # Product, module1_paths = """ /mobile/product /mobile/product/\d+""".split() # Storage module2_paths = """ /mobile/storage /mobile/storage_show/\d+""".split() # Share module3_pat...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,579
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/2d1bf125618d_merge_migration_conflict.py
"""merge migration conflict Revision ID: 2d1bf125618d Revises: 2ac2afb55e48, fc7fc4b255d1 Create Date: 2017-05-02 11:20:39.332592 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2d1bf125618d' down_revision = ('2ac2afb55e48', 'fc7fc4b255d1') branch_labels = Non...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,580
ubqai/seesun_crm_services
refs/heads/master
/application/design_application/views.py
# -*- coding: utf-8 -*- from flask import Blueprint, flash, g, redirect, render_template, request, url_for, send_file from flask_login import current_user from flask.helpers import make_response from .. import app, cache from ..helpers import object_list, save_upload_file, delete_file from ..models import DesignApplica...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,581
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/ef83fe89b1ed_add_dl_file_memo_to_design_application.py
"""add_dl_file_memo_to_design_application Revision ID: ef83fe89b1ed Revises: 31300aea2b2b Create Date: 2017-04-20 17:11:48.703407 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ef83fe89b1ed' down_revision = '31300aea2b2b' branch_labels = None depends_on = Non...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,582
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/9101b893be5c_create_content_models.py
"""create_content_models Revision ID: 9101b893be5c Revises: Create Date: 2017-02-17 13:37:11.440351 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9101b893be5c' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands a...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,583
ubqai/seesun_crm_services
refs/heads/master
/application/utils.py
import datetime import calendar def add_months(sourcedate, months): month = sourcedate.month - 1 + months year = int(sourcedate.year + month / 12 ) month = month % 12 + 1 day = min(sourcedate.day,calendar.monthrange(year,month)[1]) return datetime.date(year,month,day) def is_number(s): try: ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,584
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/483fbd912e83_create_web_access_log.py
"""create_web_access_log Revision ID: 483fbd912e83 Revises: cfd51dd8aaa0 Create Date: 2017-03-20 13:40:01.592316 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '483fbd912e83' down_revision = 'c5106cf0f74c' branch_labels = None depends_on = None def upgrade()...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,585
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/c3b57fa131bc_modified_detail_link_to_contents.py
"""modified detail link to contents Revision ID: c3b57fa131bc Revises: 2372f1f8d894 Create Date: 2017-02-23 14:20:45.528242 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c3b57fa131bc' down_revision = '2372f1f8d894' branch_labels = None depends_on = None de...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,586
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/0c39d2c5df1c_add_stock_num_to_material.py
"""add_stock_num_to_material Revision ID: 0c39d2c5df1c Revises: cc49d9ce0732 Create Date: 2017-04-30 14:09:43.094805 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0c39d2c5df1c' down_revision = 'cc49d9ce0732' branch_labels = None depends_on = None def upgra...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,587
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/cdc933dc3c56_merge_migration_conflict.py
"""merge migration conflict Revision ID: cdc933dc3c56 Revises: f96e60b9c39c, 636191448952 Create Date: 2017-03-29 14:13:45.698385 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cdc933dc3c56' down_revision = ('f96e60b9c39c', '636191448952') branch_labels = Non...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,588
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/7f5a5ea86cf3_delete_dealer.py
"""delete dealer Revision ID: 7f5a5ea86cf3 Revises: a2c6970d8137 Create Date: 2017-02-22 21:54:46.908764 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7f5a5ea86cf3' down_revision = 'a2c6970d8137' branch_labels = None depends_on = None def upgrade(): # ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,589
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/96560e166b50_add_report_no_to_project_report.py
"""add report_no to project report Revision ID: 96560e166b50 Revises: c0778ba000bb Create Date: 2017-03-06 09:31:37.521990 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '96560e166b50' down_revision = 'c0778ba000bb' branch_labels = None depends_on = None def...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,590
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/a4ef5d3cfd2a_add_token_type_to_wechat_access_token.py
"""add_token_type_to_wechat_access_token Revision ID: a4ef5d3cfd2a Revises: 59eeab2bbaaf Create Date: 2017-03-03 13:26:06.810849 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a4ef5d3cfd2a' down_revision = '59eeab2bbaaf' branch_labels = None depends_on = None...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,591
ubqai/seesun_crm_services
refs/heads/master
/application/wechat/views.py
from flask import Blueprint, flash, render_template, request, session, redirect, url_for from .models import WechatAccessToken, app, WECHAT_SERVER_AUTHENTICATION_TOKEN, WechatCall, WechatUserInfo, \ WechatPushMsg from ..backstage_management.forms import WechatUserLoginForm from ..models import User, TrackingInfo, C...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,592
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/9fea66319b4a_add_parent_id_to_users_and_sales_areas.py
"""add_parent_id_to_users_and_sales_areas Revision ID: 9fea66319b4a Revises: 5705eb7a8dcf Create Date: 2017-03-10 10:02:08.760531 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9fea66319b4a' down_revision = '5705eb7a8dcf' branch_labels = None depends_on = Non...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,593
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/c7bccccf81a5_change_square_from_integer_to_float_1.py
"""change square from integer to float #1 Revision ID: c7bccccf81a5 Revises: bcbb13072ffa Create Date: 2017-02-23 05:56:42.919800 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c7bccccf81a5' down_revision = 'bcbb13072ffa' branch_labels = None depends_on = Non...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,594
ubqai/seesun_crm_services
refs/heads/master
/application/backstage_management/forms.py
from wtforms import StringField, PasswordField, validators, TextAreaField, BooleanField from ..forms import BaseCsrfForm # BASE ACCOUNT_LOGIN class AccountLoginForm(BaseCsrfForm): email = StringField('邮箱', [validators.Email(message="请填写正确格式的email")]) password = PasswordField('密码', validators=[ validat...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,595
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/2372f1f8d894_add_square_num.py
"""add square_num Revision ID: 2372f1f8d894 Revises: c7bccccf81a5 Create Date: 2017-02-23 06:05:01.001318 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2372f1f8d894' down_revision = 'c7bccccf81a5' branch_labels = None depends_on = None def upgrade(): #...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,596
ubqai/seesun_crm_services
refs/heads/master
/application/content/forms.py
# -*- coding: utf-8 -*- from wtforms import Form, StringField, TextAreaField, SelectField from wtforms.validators import * from ..models import User, SalesAreaHierarchy class ContentForm(Form): name = StringField('内容标题', validators=[DataRequired(message='name is necessary')]) description = TextAreaField('内容描...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,597
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/5705eb7a8dcf_add_production_num_to_order_content.py
"""add production_num to order_content Revision ID: 5705eb7a8dcf Revises: c2024ad11427 Create Date: 2017-03-10 00:02:23.674172 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5705eb7a8dcf' down_revision = 'c2024ad11427' branch_labels = None depends_on = None ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,598
ubqai/seesun_crm_services
refs/heads/master
/seed.py
# -*- coding: utf-8 -*- """ $ python seed.py Execute this file will create a bunch of sample data for mobile application display. """ from application.models import * # 案例目录基础数据(default) if not ContentCategory.query.filter(ContentCategory.name == '案例展示').first(): cases = ContentCategory(name='案例展示').save class...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,599
ubqai/seesun_crm_services
refs/heads/master
/application/inventory/views.py
# -*- coding: utf-8 -*- from flask import Blueprint, redirect, render_template, url_for, request, flash, current_app from ..models import * from .api import load_categories, create_inventory, load_inventories, update_inventory, delete_inventory, load_inventory from decimal import Decimal from application.utils import i...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,600
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/ea68faadfa4e_create_wechat_access_token.py
"""create_wechat_access_token Revision ID: ea68faadfa4e Revises: 3f632ce96098 Create Date: 2017-03-02 09:50:27.675113 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ea68faadfa4e' down_revision = '3f632ce96098' branch_labels = None depends_on = None def upgr...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,601
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/9cc62ef23a49_create_districts_and_dealers_and_orders_and_contracts.py
"""create_districts_and_dealers_and_orders_and_contracts Revision ID: 9cc62ef23a49 Revises: 9101b893be5c Create Date: 2017-02-19 09:41:57.762816 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9cc62ef23a49' down_revision = '9101b893be5c' branch_labels = None d...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,602
ubqai/seesun_crm_services
refs/heads/master
/application/order_manage/forms.py
# -*- coding: utf-8 -*- from wtforms import Form, StringField, DateField from wtforms.ext.sqlalchemy.fields import QuerySelectField from wtforms.validators import * from ..models import SalesAreaHierarchy class ContractForm(Form): amount = StringField('总金额', validators=[DataRequired(message='总金额必须输入')]) deliv...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,603
ubqai/seesun_crm_services
refs/heads/master
/application/wechat/models.py
# -*- coding: utf-8 -*- import datetime import hashlib import json import random import string import time import urllib import requests from .. import db, app WECHAT_SERVER_AUTHENTICATION_TOKEN = "AUTH_TOKEN_135" WECHAT_APPID = "wx05617a940b6ca40e" WECHAT_APPSECRET = "a0f13258cf8e959970260b24a9dea2de" WECHAT_TEST_...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,604
ubqai/seesun_crm_services
refs/heads/master
/application/config.py
# -*- coding: utf-8 -*- import os class Configuration(object): SECRET_KEY = os.getenv('SECRET_KEY') or 'seesun' APPLICATION_DIR = os.path.dirname(os.path.realpath(__file__)) STATIC_DIR = os.path.join(APPLICATION_DIR, 'static') IMAGES_DIR = os.path.join(STATIC_DIR, 'images') SQLALCHEMY_TRACK_MODIFI...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,605
ubqai/seesun_crm_services
refs/heads/master
/application/web_access_log/views.py
from flask import Blueprint, flash, redirect, render_template, request, url_for from .models import * from ..helpers import object_list web_access_log = Blueprint('web_access_log', __name__, template_folder='templates') @web_access_log.route('/index/') def index(): query = WebAccessLog.query query = filter_b...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,606
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/0ad45412bffd_add_category_id_to_content.py
"""add category id to content Revision ID: 0ad45412bffd Revises: 8c795821d12d Create Date: 2017-02-22 10:04:59.049118 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0ad45412bffd' down_revision = '8c795821d12d' branch_labels = None depends_on = None def upgr...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,607
ubqai/seesun_crm_services
refs/heads/master
/application/__init__.py
# -*- coding: utf-8 -*- import os from flask import Flask, g, render_template, redirect, url_for, request, flash from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_bcrypt import Bcrypt from .utils import num2moneyformat from .config import config from flask_cache import Cache impo...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,608
ubqai/seesun_crm_services
refs/heads/master
/main.py
# -*- coding: utf-8 -*- # This is a simple wrapper for running application # $ python main.py # $ gunicorn -w 4 -b 127.0.0.1:5000 main:app from application import app import application.views if __name__ == '__main__': app.run()
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,609
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/fe424f6b86a5_add_delivery_infos_to_tracking_info.py
"""add_delivery_infos_to_tracking_info Revision ID: fe424f6b86a5 Revises: c6fb90a99137 Create Date: 2017-03-25 10:16:07.411587 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'fe424f6b86a5' down_revision = 'c6fb90a99137' branch_labels = None depends_on = None ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,610
ubqai/seesun_crm_services
refs/heads/master
/application/views.py
# -*- coding: utf-8 -*- import os import datetime import random import traceback from flask.helpers import make_response from flask import flash, redirect, render_template, request, url_for, session, current_app, send_file from . import app from .models import * from .web_access_log.models import WebAccessLog, can_take...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,611
ubqai/seesun_crm_services
refs/heads/master
/regional_seeds.py
from application.models import * zg = SalesAreaHierarchy(name="中国", level_grade=1) db.session.add(zg) db.session.commit() for name in ["华东区", "华南区", "华中区", "华北区", "东北区", "西北区", "西南区"]: item = SalesAreaHierarchy(name=name, level_grade=2, parent_id=zg.id) db.session.add(item) db.session.commit()
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,612
ubqai/seesun_crm_services
refs/heads/master
/migrations/versions/ad50d4738049_add_material_application_model.py
"""add material application model Revision ID: ad50d4738049 Revises: c3b57fa131bc Create Date: 2017-02-23 17:16:09.465503 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ad50d4738049' down_revision = 'c3b57fa131bc' branch_labels = None depends_on = None def ...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...
21,613
ubqai/seesun_crm_services
refs/heads/master
/application/product/views.py
# -*- coding: utf-8 -*- from flask import Blueprint, flash, redirect, render_template, request, url_for from .. import db from ..helpers import save_upload_file, delete_file, clip_image from .api import * from ..models import Content, ContentCategory product = Blueprint('product', __name__, template_folder='templates'...
{"/application/helpers.py": ["/application/__init__.py"], "/application/content/views.py": ["/application/__init__.py", "/application/helpers.py", "/application/models.py", "/application/wechat/models.py", "/application/content/forms.py"], "/province_seeds.py": ["/application/models.py"], "/application/project_report/v...