This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FollowController(Resource): | |
| # Working Correctly | |
| @auth.login_required | |
| def post(self): | |
| parser = reqparse.RequestParser() | |
| # Let us take ID of other user who will be followed or unfollowed | |
| parser.add_argument( | |
| 'id', | |
| required=True, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import unittest | |
| import json | |
| import app | |
| from . import util | |
| from models import Recruiter_invitation, Recruiter, Job, Jobseeker_Job | |
| from database import db | |
| class TestRecruiterApi(unittest.TestCase): | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Business logic for all the authencation releted apis | |
| is present here. | |
| """ | |
| from functools import wraps | |
| from flask import g, jsonify, request | |
| from werkzeug import check_password_hash | |
| from itsdangerous import TimedJSONWebSignatureSerializer as Serializer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component, Output, EventEmitter} from '@angular/core'; | |
| @Component({ | |
| selector: 'rating', | |
| template: ` | |
| <div class="rating"> | |
| <div class="back"> | |
| <a href="#" (click)="setRating(i)" *ngFor="let i of numberOf(numstars)"><ion-icon name="star" ></ion-icon></a> | |
| </div> | |
| <div class="front" [ngStyle]="{width: getWidth()}"> | |
| <a href="#" (click)="setRating(i)" *ngFor="let i of numberOf(numstars)"><ion-icon name="star" ></ion-icon></a> |
NewerOlder