Skip to content

Commit

Permalink
Get BM archtype in student list
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebrownlee committed Nov 19, 2022
1 parent 25bbf2d commit 4e93913
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 108 deletions.
2 changes: 1 addition & 1 deletion LearningAPI.session.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SELECT * FROM public."LearningAPI_studentpersonality";
DELETE FROM public."LearningAPI_studentpersonality";

UPDATE public."LearningAPI_studentpersonality"
SET briggs_myers_type = 'INTJ'
SET briggs_myers_type = 'ENFP'
WHERE student_id = 56;

INSERT INTO public."LearningAPI_studentpersonality"
Expand Down
238 changes: 238 additions & 0 deletions LearningAPI/views/personality.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
PERSONALITY_TYPES = {
"ISTJ": {
"type": "Sentinel",
"summary": """Quiet, serious, earn success by thoroughness and dependability.
Practical, matter-of-fact, realistic, and responsible. Decide logically
what should be done and work toward it steadily, regardless of distractions.
Take pleasure in making everything orderly and organized - their work, their
home, their life. Value traditions and loyalty.""",
"details": """When greeting these types be sure to smile, but also give them
personal space. Don’t interrupt or use a lot of small talk when
trying to get information. Give them time to reflect before expecting
an answer. Understand that they tend to be very focused on what
they’re doing and can get thrown off by unrelated conversation.
"""
},
"ISFJ": {
"type": "Sentinel",
"summary": """Quiet, friendly, responsible, and conscientious.
Committed and steady in meeting their obligations. Thorough,
painstaking, and accurate. Loyal, considerate, notice and
remember specifics about people who are important to them,
concerned with how others feel. Strive to create an orderly
and harmonious environment at work and at home.""",
"details": """When saying hello use a quiet and friendly tone. Use a steady,
calm pace and don’t rush. Take regular pauses. Don’t dominate the
conversation. When you’re explaining something give them time to
process and reflect on what you’ve said. These types can get
embarrassed by public recognition and compliments.
"""
},
"INFJ": {
"type": "Diplomat",
"summary": """Seek meaning and connection in ideas, relationships, and material
possessions. Want to understand what motivates people and are insightful about others.
Conscientious and committed to their firm values. Develop a clear vision about how best
to serve the common good. Organized and decisive in implementing their vision""",
"details": """When greeting these types be sure to smile, but also give them personal
space. Don’t interrupt or use a lot of small talk when trying to get information. Give
them time to reflect before expecting an answer. Understand that they tend to be very
focused on what they’re doing and can get thrown off by unrelated conversation.
"""
},
"INTJ": {
"type": "Analyst",
"summary": """Have original minds and great drive for implementing their ideas and
achieving their goals. Quickly see patterns in external events and develop long-range
explanatory perspectives. When committed, organize a job and carry it through.
Skeptical and independent, have high standards of competence and performance - for
themselves and others.""",
"details": """When greeting these types be sure to smile, but also give them personal
space. Don’t interrupt or use a lot of small talk when trying to get information. Give
them time to reflect before expecting an answer. Understand that they tend to be very
focused on what they’re doing and can get thrown off by unrelated conversation.
Tend to prioritize rationality and success over politeness and pleasantries
– in other words, they’d rather be right than popular.
"""
},
"ISTP": {
"type": "Explorer",
"summary": """Tolerant and flexible, quiet observers until a problem appears, then
act quickly to find workable solutions. Analyze what makes things work and readily
get through large amounts of data to isolate the core of practical problems. Interested
in cause and effect, organize facts using logical principles, value efficiency""",
"details": """When greeting these types be sure to smile, but also give them personal
space. Don’t interrupt or use a lot of small talk when trying to get information.
Give them time to reflect before expecting an answer. Understand that they tend to be
very focused on what they’re doing and can get thrown off by unrelated conversation.
"""
},
"ISFP": {
"type": "Explorer",
"summary": """Quiet, friendly, sensitive, and kind. Enjoy the present moment, what's
going on around them. Like to have their own space and to work within their own time
frame. Loyal and committed to their values and to people who are important to them.
Dislike disagreements and conflicts, do not force their opinions or values on others.""",
"details": """When saying hello use a quiet and friendly tone. Use a steady,
calm pace and don’t rush. Take regular pauses. Don’t dominate the
conversation. When you’re explaining something give them time to
process and reflect on what you’ve said. These types can get
embarrassed by public recognition and compliments.
"""
},
"INFP": {
"type": "Diplomat",
"summary": """Idealistic, loyal to their values and to people who are important
to them. Want an external life that is congruent with their values.
Curious, quick to see possibilities, can be catalysts for implementing
ideas. Seek to understand people and to help them fulfill their
potential. Adaptable, flexible, and accepting unless a value is
threatened.""",
"details": """When saying hello use a quiet and friendly tone. Use a steady, calm pace and don’t rush.
Take regular pauses. Don’t dominate the conversation. When you’re
explaining something give them time to process and reflect on what
you’ve said. These types can get embarrassed by public recognition
and compliments.
"""
},
"INTP": {
"type": "Analyst",
"summary": """Seek to develop logical explanations for everything that interests them.
Theoretical and abstract, interested more in ideas than in social interaction. Quiet,
contained, flexible, and adaptable. Have unusual ability to focus in depth to solve
problems in their area of interest. Skeptical, sometimes critical, always analytical.""",
"details": """When saying hello use a quiet and friendly tone. Use a steady, calm pace and don’t rush.
Take regular pauses. Don’t dominate the conversation. When you’re
explaining something give them time to process and reflect on what
you’ve said. These types can get embarrassed by public recognition
and compliments. Can find themselves baffled by the illogical, irrational
ways that feelings and emotions influence people’s behavior – including
their own. Since they can’t decide on the best, most efficient way to
offer support, they may hold off on doing or saying anything at all.
"""
},
"ESTP": {
"type": "Explorer",
"summary": """Flexible and tolerant, they take a pragmatic approach focused on immediate
results. Theories and conceptual explanations bore them - they want to act energetically
to solve the problem. Focus on the here-and-now, spontaneous, enjoy each moment that they
can be active with others. Enjoy material comforts and style. Learn best through doing.""",
"details": """Be brief and cordial when saying hello.
Speak quickly and with confidence.
State directly what you want and why you’re there.
Try not to procrastinate or go off on tangents unrelated to the main topic.
Understand that these types can become bossy when stressed. Help them
to see that something is being done and use humor to help lighten the mood.
"""
},
"ESFP": {
"type": "Explorer",
"summary": """Outgoing, friendly, and accepting. Exuberant lovers of life, people, and
material comforts. Enjoy working with others to make things happen. Bring common sense
and a realistic approach to their work, and make work fun. Flexible and spontaneous,
adapt readily to new people and environments. Learn best by trying a new skill with
other people.""",
"details": """Smile and make eye contact when saying hello. Use open gestures and keep your
manner friendly and energetic. When you say goodbye leave with a positive note.
Show warmth and confirm that you enjoyed the visit. Ask open-ended questions and
be responsive to their answers.
"""
},
"ENFP": {
"type": "Diplomat",
"summary": """Warmly enthusiastic and imaginative. See life as full of possibilities.
Make connections between events and information very quickly, and confidently
proceed based on the patterns they see. Want a lot of affirmation from others,
and readily give appreciation and support. Spontaneous and flexible, often rely
on their ability to improvise and their verbal fluency.""",
"details": """Smile and make eye contact when saying hello. Use open gestures and keep your
manner friendly and energetic. When you say goodbye leave with a positive note.
Show warmth and confirm that you enjoyed the visit. Ask open-ended questions and
be responsive to their answers.
"""
},
"ENTP": {
"type": "Analyst",
"summary": """Quick, ingenious, stimulating, alert, and outspoken. Resourceful in solving
new and challenging problems. Adept at generating conceptual possibilities and
then analyzing them strategically. Good at reading other people. Bored by routine
, will seldom do the same thing the same way, apt to turn to one new interest
after another.""",
"details": """Smile and make eye contact when saying hello. Use open gestures and keep your
manner friendly and energetic. When you say goodbye leave with a positive note.
Show warmth and confirm that you enjoyed the visit. Ask open-ended questions and
be responsive to their answers. May find that their quarrelsome fun burns many
bridges, often inadvertently. Unless they cultivate a bit of sensitivity, they may
struggle to maintain deeper relationships.
"""
},
"ESTJ": {
"type": "Sentinel",
"summary": """Practical, realistic, matter-of-fact. Decisive, quickly move to implement
decisions. Organize projects and people to get things done, focus on getting results in
the most efficient way possible. Take care of routine emotions. Have a clear set of
logical standards, systematically follow them and want others to also. Forceful in
implementing their plans.""",
"details": """Be brief and cordial when saying hello.
Speak quickly and with confidence.
State directly what you want and why you’re there.
Try not to procrastinate or go off on tangents unrelated to the main topic.
Understand that these types can become bossy when stressed. Help them
to see that something is being done and use humor to help lighten the mood.
"""
},
"ESFJ": {
"type": "Sentinel",
"summary": """Warmhearted, conscientious, and cooperative. Want harmony in their environment,
work with determination to establish it. Like to work with others to complete tasks accurately
and on time. Loyal, follow through even in small matters. Notice what others need in their
day-by-day lives and try to provide it. Want to be appreciated for who they are and for what
they contribute.""",
"details": """Smile and make eye contact when saying hello. Use open gestures and keep your
manner friendly and energetic. When you say goodbye leave with a positive note.
Show warmth and confirm that you enjoyed the visit. Ask open-ended questions and
be responsive to their answers.
"""
},
"ENFJ": {
"type": "Diplomat",
"summary": """Warm, empathetic, responsive, and responsible. Highly attuned to the emotions,
needs, and motivations of others. Find potential in everyone, want to help others
fulfill their potential. May act as catalysts for individual and group growth.
Loyal, responsive to praise and criticism. Sociable, facilitate others in a group,
and provide inspiring leadership.""",
"details": """Be brief and cordial when saying hello.
Speak quickly and with confidence.
State directly what you want and why you’re there.
Try not to procrastinate or go off on tangents unrelated to the main topic.
Understand that these types can become bossy when stressed. Help them
to see that something is being done and use humor to help lighten the mood.
"""
},
"ENTJ": {
"type": "Analyst",
"summary": """Frank, decisive, assume leadership readily. Quickly see illogical
and inefficient procedures and policies. Enjoy long-term planning and goal
setting. Usually well informed, well read, enjoy expanding their knowledge and
passing it on to others. Forceful in presenting their ideas.""",
"details": """Emotional expression isn’t a strength. Be brief and cordial when saying hello.
Speak quickly and with confidence.
State directly what you want and why you’re there.
Try not to procrastinate or go off on tangents unrelated to the main topic.
Understand that these types can become bossy when stressed. Help them
to see that something is being done and use humor to help lighten the mood.
"""
}
}

def myers_briggs_persona(code):
return PERSONALITY_TYPES[code[0:4]]
Loading

0 comments on commit 4e93913

Please sign in to comment.